Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Monday, 27 January 2014

SSH Login Without Password

Login to the Remote server via SSH  without password using ssh-keygen & ssh-copy-id.

"ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host’s home, ~/.ssh, and ~/.ssh/authorized_keys. "
1) Generates ssh-key using ssh-keygen

$ ssh-keygen

Hit ENTER

2) Copy the public key to remote-host using ssh-copy-id


$ ssh-copy-id username@ipaddress -pXXXX


Here,

username - Type the username of remote host
ipaddress - Type IP address of remote host.
XXXX     - Type port number if any,(ignore " -pXXX " if the remote sever has no ssh port)

Note : You need to Enter a one-time password.That's it.

Now login to the remote server without password. :-)

No comments:

Post a Comment