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/id_rsa.pub | 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 id_rsa.pub.

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.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
 o      O  oOoOOoOOo           o       .oOOOo.  
O o o o O O o o
o O o o O.
oO O o `OOoo.
Oo o O .oOoO 'o `O
o o O o o O O o
O O O O O o o O. .O
O o o' o' `OoO'o O `oooO'
o
oO'
Enter the code depicted in ASCII art style.