This blog contains some important fundae for linux users, which may look very trivial, but are very useful.
SCP and SSH without password
To ssh from machine source to destination without system asking you for password follow these instuctions. On source run the command ssh-keygen -t rsa You will be asked "Enter passphrase (empty for no passphrase):" . Press Enter. This command will generate a private key in $HOME/.ssh/id_rsa and a public key in $HOME/.ssh/id_rsa.pub Transfer the file id_rsa.pub to destination machine (you can use scp/ftp) At destination append the id_rsa.pub to $HOME/.ssh/authorized_keys using cat id_rsa.pub >> $HOME/.ssh/authorized_keys Next time when you ssh from source to destination, you will not be asked for any passwords.
No comments:
Post a Comment