Ssh without password
Secure shell (ssh) protocols can be configure to work without protocols. This is particularly helpful for machines that are used often.
Configuring ssh without password from a POSIX-compliant terminal
- Log into a local Linux or MacOSX computer
- Type the following to generate the ssh key:
ssh-keygen -t dsa
- Accept the default key location by pressing
Enter. - Secure permission of your authentication keys by closing permission to your home directory, .ssh directory, and authentication files
chmod go-w $HOME
chmod 700 $HOME/.ssh
chmod go-rwx $HOME/.ssh/*
- Type the following to copy the key to the remote server.
cd ~/.ssh
scp id_dsa.pub remote_username@remote_host:/tmp