theinoob.comsitemap

how to connect from mac to centos using ssh private/public keys (video)

No Comments

Requirements:

  • Access to your centos machine
  • Mac OS X v. 10.9.x
  • Basic command line knowledge
  • A virtual or physical machine running centos connected to your network or with internet access

centos

Video / Text:

Using encrypted keys for authentication offers two main benefits. Firstly, it is convenient as you no longer need to enter a password (unless you encrypt your keys with password protection) if you use public/private keys. Secondly, once public/private key pair authentication has been set up on the server, you can disable password authentication completely meaning that without an authorized key you can’t gain access – so no more password cracking attempts. 

It’s a relatively simple process to create a public/private key pair and install them for use on your ssh server. 

First, create a folder called .ssh in your home directory and cd into it (make sure you also have it on the server in the home directory of the user you are connecting with):

$ mkdir ~/.ssh; cd ~/.ssh

Second, create a public/private key pair on the client that you will use to connect to the server (you will need to do this from each client machine from which you connect):

$ ssh-keygen -t rsa -C "Name Surname" -f name

Replace “Name Surname” and “name” with your name. This is to give it a bit of personalisation. For my example here I will use it like this:

$ ssh-keygen -t rsa -C "TheiNoob Tutorials" -f theinoob

More

how to enable/disable root user account on Mac OS X Mavericks video

No Comments

Requirements:

  • Mac OS X v. 10.9.x
  • User account with admin privileges.

Video / Text:

  1. Go to Apple menu
  2. Select “System Preferences”
  3. Go to “Users and Groups” preference pane
  4. Click the lock icon and put your password in
  5. Click “Login Options”
  6. Click “Join…” button
  7. Click “Open Directory Utility…” button
  8. After the Directory Utility app is open make sure it is selected
  9. Click the lock icon and put your password in
  10. Go to “Edit” menu and select “Enable root user”

More

how to use rsync to restore Time Machine data

No Comments

Time Machine

Requirements:

  • Mac OS X v. 10.7 or newer
  • basic command line knowledge

Text:

Creating the backup path:

If you are restoring from a TimeMachine backup (USB) the backup path is structured as follows:

patha=/Volumes/USB_VOLUME_NAME/Backups.backupdb/NAME_OF_MAC/YEAR-MONTH-DAY-HH/NAME_OF_ORIG_VOLUME/

If you are restoring from a TimeMachine backup (network, TM server) the backup is incapsulated into a .sparsebundle writable image. You will have to mount the image before you can access backed up data. The backup within is structured as follows:

patha=/Volumes/NAME_OF_VOLUME/Backups.backupdb/NAME_OF_MAC/YEAR-MONTH-DAY-HH/NAME_OF_ORIG_VOLUME/…

More

how to clear dns cache mac

No Comments

Requirements:

  • mac os 10.6 or newer version
  • an account that has admin privileges

Text:

If you are on Mac OS X v.10.6 open Terminal app and issue the following command:

More

how to configure NFS automount for use with managed user accounts on mac os x snow leopard server 10.6.x

No Comments

Requirements:

  • Mac OS X Server 10.6.x computer, configured and running.
  • Following services configured and running: AFP, NFS, DNS, OpenDirectoryMaster, Firewall service configured so that AFP and NFS get thru the firewall.

Text:

First login to the server using an administrator user account.

More

Older Entries