Posts

Showing posts with the label ssh-keygen

ssh-keygen: password-less SSH login

SSH is often used to login from one machine to another machine, There are number of methods to achieve this but mostly in every method it requires authentication..... It also does require authentication but for one time only i.e. for the first time you need to do a setup and for rest of the times when you will try to login via ssh it will not ask for any password. you just need to generate your own personal set of private/public key pair. ssh-keygen is used to generate that key pair. How to generate public/private key root@server:/other_part# ssh-keygen -t rsa Press  (enter) generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa):   (save your default  on default location) Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa.  (enter) Your public key has been saved in /root/.ssh/id_rsa.pub.   (enter) The key finger...