vincent's Blog

一個無聊的網路雜工的紀錄!!

ssh-keygen -t dsa
ssh-keygen -t rsa

exp:
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:
e0:93:6d:d2:4d:88:7e:61:c3:ee:bc:94:fe:cd:da:77 root@xxx.xxx.com
You have new mail in /var/spool/mail/root


chmod 755 ~/.ssh
scp ~/.ssh/id_dsa.pub root@xxx.xxx.xxx.xxx:~/.ssh/authorized_keys

0 意見

張貼留言

Categories

追蹤者

Change Language

Your Source