建立SSH信任关系

linux-root:~ # ssh-keygen -t dsa

Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
52:8c:fb:ce:71:fb:82:a1:1c:43:4c:c2:1f:4b:63:f3
root@linux-d8lo

linux-d8lo:~ # cd .ssh/
linux-d8lo:~/.ssh # ls

id_dsa  id_dsa.pub  id_rsa  id_rsa.pub  known_hosts

linux-d8lo:~/.ssh # cat id_dsa.pub >> authorized_keys
linux-d8lo:~/.ssh # chmod 600 auth

 

你可能感兴趣的:(linux,ssh)