分类: LINUX
2013-10-23 14:19:27
ssh-keygen -t dsa
ssh-keygen -t dsa
cat id_rsa.pub >> authorized_keys
cat id_dsa.pub >> authorized_keys
然后将authorized_keys
scp 到156.192的/root/.ssh下面
之后再192.168.156.192上进行如下操作
创建公钥
ssh-keygen -t rsa
cat id_rsa.pub >> authorized_keys
cat id_dsa.pub >> authorized_keys
回到156.190上删除/root/.ssh中的authorized_keys
再回到156.192上将完整的公钥信息authorized_keys
利用scp命令传到156.190的/rro/.ssh下
然后进行测试