首页 > 代码库 > 做ssh key分发实验中的一个简单问题
做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 sky9890@192.168.152.128
-bash: ssh-copy-id: command not found //问题
[sky9890@A ~]$ yum -y install openssh-clients //解决方法:
安装成功之后,就可以做后续实验了,在这里后续实验环节描述了,此次实验关键在后续。
本文出自 “Linux+DBA+MBA” 博客,请务必保留此出处http://sky9896.blog.51cto.com/2330653/1593919
做ssh key分发实验中的一个简单问题