ubuntu, ror, jQuery, css, website memo
太嫩, 沒啥心得, 用來紀錄每天學的
2009年7月16日 星期四
ssh 免打密碼自動登入 memo
from here
在 自己電腦 Client 端
[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:
ad:85:bddb5:ddr:a544c:fc:ef:57:dd:4b:ef:a9:8a:db root@~
[root@ ~]# cd /root/.ssh/id_dsa
id_dsa id_dsa.pub
[root@ ~]# scp /root/.ssh/id_dsa.pub root@192.168.188.199:/root/.ssh/
server 端
cd .ssh
cat ./id_rsa.pub >> authorized_keys
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言