[sean@station62 tmp]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/sean/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/sean/.ssh/id_dsa.
Your public key has been saved in /home/sean/.ssh/id_dsa.pub.
The key fingerprint is:
8f:f7:6c:91:cd:a6:d7:27:3a:a6:1b:0d:2f:e8:b9:e8 sean@station62.example.com
The key's randomart image is:
+--[ DSA 1024]----+
|                 |
|                 |
|                 |
|                 |
|        S .  +   |
|         + +o +  |
|        o = o+ . |
|       o o == o o|
|     .E +.o=++ ..|
+-----------------+

--

[sean@station62 ~]$ ssh-copy-id -i ~/.ssh/id_dsa.pub peter@192.168.123.52
peter@192.168.123.52's password:
Now try logging into the machine, with "ssh 'peter@192.168.123.52'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[sean@station62 ~]$ ssh peter@192.168.123.52
Last login: Thu Aug  9 10:03:12 2012 from 192.168.123.52

文章標籤
全站熱搜
創作者介紹
創作者 sean 的頭像
sean

My Source Code

sean 發表在 痞客邦 留言(0) 人氣(9)