ssh-copy-id.gif

ssh-copy-id是ssh client套件內一個預設的指令,簡單的來說他只是一個script,當你在本機電腦已經有產生了RSA or DSA authentication,可以透過ssh-copy-id的指令將認證傳送到遠端主機。

如何建立RSA or DSA authentication?
$ ssh-keygen -t dsa (ssh-keygen -t rsa)
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:
--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:-- root@localhost
哇哇3C日誌 綠色工廠2.0
通知!本文已經移轉到:ssh-copy-id 快速的與遠端主機建立ssh認證(包含非22 port),完整文章請到 哇哇3C日誌 收看唷!
更多資訊請參考:
Samsung Galaxy A7 開箱拍照評測
LIFAair 空氣清淨機,PM2.5、甲醛數據看的到!