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 ( from my local-host (

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

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

3. Try ssh without password to remote-host( from local-host(

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 *