1.操作系统:CentOS6.6
2.任务:ssh key分发实验
3.操作过程如下:
[[email protected] ~]$ 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 [email protected]
......
[[email protected] ~]$ ssh-copy-id -i .ssh/id_dsa.pub [email protected]
-bash: ssh-copy-id: command not found //问题
[[email protected] ~]$ yum -y install openssh-clients //解决方法:
安装成功之后,就可以做后续实验了,在这里后续实验环节描述了,此次实验关键在后续。
时间: 2024-07-29 19:41:50