Skip to main content

Passwordless SSH

Posted in

Assume that you need a passwordless access to TARGET computer via SSH from ORIGIN computer. You need an authorization key for that:

user@ORIGIN> ssh-keygen -t rsa
user@ORIGIN> cat .ssh/ | ssh user@TARGET 'cat >> .ssh/authorized_keys'

Note: ssh-keygen will ask you to type then name for a generated key. The default name is

Hint: This allows you to use automatic completion when using scp.

Post new comment

The content of this field is kept private and will not be shown publicly.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.