做ssh key分發實驗中的一個簡單問題

1.操作系統:CentOS6.6

2.任務:ssh key分發實驗

3.操作過程如下:

[sky9890@A ~]$ ssh-keygen -t dsa

Generating public/private dsa key pair.

Enter file in which to save the key (/home/sky9890/.ssh/id_dsa): 

Created directory '/home/sky9890/.ssh'.

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in /home/sky9890/.ssh/id_dsa.

Your public key has been saved in /home/sky9890/.ssh/id_dsa.pub.

The key fingerprint is:

59:c3:24:0d:9f:d1:cd:f9:06:02:ec:53:3f:67:c7:5e sky9890@A

......

[sky9890@A ~]$ ssh-copy-id -i .ssh/id_dsa.pub [email protected]

-bash: ssh-copy-id: command not found   //問題

[sky9890@A ~]$ yum  -y  install openssh-clients //解決方法:

  安裝成功之後,就可以做後續實驗了,在這裏後續實驗環節描述了,此次實驗關鍵在後續。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章