How to create SSH without login using ssh keygen

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.

Scenario is i want to ssh to remote-host (192.168.0.16) from my local-host (192.168.0.14)

The steaps are
1. Create public and private keys using ssh-key-gen on local-host (you do in local-host)
ssh-copy-id-1

2. Copy the public key to remote-host using ssh-copy-id (you do in local-host)
ssh-copy-id-2

3. Try ssh without password to remote-host(192.168.0.16) from local-host(192.168.0.14)
ssh-copy-id-3

Why do we need ssh without login?
We need ssh without login for processes which run on background, such as transfer patch file during auto patching, auto remote synchronization to remote machine, etc.

This entry was posted in Uncategorized, Useful Information. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *