建立SSH信任关系

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

Generating public/private dsa key pair.

Enterfileinwhichtosavethekey(/root/.ssh/id_dsa):

Enterpassphrase(emptyfornopassphrase):

Entersamepassphraseagain:

Youridentificationhasbeensavedin/root/.ssh/id_dsa.

Yourpublickeyhasbeensavedin/root/.ssh/id_dsa.pub.

Thekeyfingerprintis:

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

相关推荐