Friday, 22 April 2011

passwordless ssh

Assume A wants to login passwordless on B

1. create public+private keys
$ ssh-keygen -t rsa
Enter passphrase (empty for no passphrase): Enter

files created:
private saved in .ssh/id_rsa
public key is save in .ssh/

2. copy keys
A (automatic: recommended):
$ ssh-copy-id user@B


B (manually):
in .ssh/authorized_keys (pc B) add the contents of .ssh/ (pc A)

No comments:

Post a Comment