Assume A wants to login passwordless on B
1. create public+private keys
A:
files created:
private saved in .ssh/id_rsa
public key is save in .ssh/id_rsa.pub
2. copy keys
A (automatic: recommended):
or
B (manually):
in .ssh/authorized_keys (pc B) add the contents of .ssh/id_rsa.pub (pc A)
1. create public+private keys
A:
$ 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/id_rsa.pub
2. copy keys
A (automatic: recommended):
$ ssh-copy-id user@B
or
B (manually):
in .ssh/authorized_keys (pc B) add the contents of .ssh/id_rsa.pub (pc A)
No comments:
Post a Comment