1. 创建用户及密码
useradd silly
echo 123456|passwd --stdin silly
2.生成秘钥
su - silly
ssh-keygen -t dsa
一路回车
ssh-copy-id -i .ssh/id_dsa.pub silly@192.168.47.21
ssh-copy-id -i .ssh/id_dsa.pub "-p 2222 silly@192.168.47.21"
ssh -p22 silly@192.168.47.41 /sbin/ifconfig eth0