
Hi friends..!!
Here is the trick for how to : SSH without password so that you don't have to enter password each time you make ssh connection with the remote computer.
On your computer, open terminal and generate rsa key by firing the command-
$ sudo ssh-keygen -t rsa
(hit enter if asks for saving location so that it will take default location within .ssh/ file)
now append this generated key on destination machines authorized_keys file,
$ sudo cat .ssh/id_rsa.pub | ssh user@destination_machine_ip 'cat >> .ssh/authorized_keys'
now destination machine asks for password for one last time, enter destination machines password for the last time and now on you can ssh to your destination machine without entering the password.
Keep enjoying..!!!
No comments:
Post a Comment