Setup passwordless logins
Caution: if you already have setup ssh utilizing ssh keys there is no need to follow the instructions below. RsyncOSX is depended upon passwordless logins for synchronizing data to remote servers. The instructions below only applies if passwordless login is not setup. If utilizing RsyncOSX on local attached disks this does not apply.
The objective is to assist setting up passwordless logins. Ssh does not provide any possibilities to pass password as parameter. Some actions to setup passwordless logins therefore require a terminal window for copy/paste commands for password prompt and execution of task.
Local ssh keys
Check button to verify if ssh keys are created or not. If there are no keys, either choose a
dsa based private and public key pair or both (once a time).
Rsa public key found(if file
Dsa public key found(if file
Create keys, either rsa or dsa based (by
Which key to create and use is for you to decide. I am using the rsa based key only.
Create local ssh keys
rsa based key and select
Create keys. Local keys are created by
ssh-keygen and saved in
.ssh local catalog. The output shows information from the
ssh-keygen tool. If creation of local key is OK the output should be something like in view. And the
Rsa public key found should be ticked on. Likewise for a
dsa based key.
After both keys are created the
Create keys button is disabled.
After local private and public ssh key pair is created choosing
Remote server to select which remote server to setup. It is required to add configuration before setting up passwordless logins.
Ssh directory- copy and paste command in Terminal.app to create remote
Scp rsa- copy and paste command in Terminal.app to secure copy public rsa key.
Scp dsa- copy and paste command in Terminal.app to secure copy public dsa key
Transfer public key to remote server
Next step is to manually create a remote
.ssh catalog and
scp (secure copy) the public key to remote server.
Scp rsa- copy and paste command
/usr/bin/scp /Volumes/Home/thomas/.ssh/id_rsa.pub email@example.com:.ssh/authorized_keys copy the rsa public key
~/.ssh/id_rsa.pub to remote server as file
Scp dsa- copy and paste command
/usr/bin/scp /Volumes/Home/thomas/.ssh/id_dsa.pub firstname.lastname@example.org:.ssh/authorized_keys2 copy the dsa public key
~/.ssh/id_dsa.pub to remote server as file
After public key(s) are copied it is important to set correct permissions on remote public key files.
Check rsa- selecting button set correct mode on file and catalog (see passwordless login) and executes a remote
ls -alto list file with permissions
Check dsa- as above but for the dsa public key
chmod 600means owner can read and write file.
chmod 700means owner can read, write and execute