1.安装openssh.openssh-server 2.启动sshd:service sshd start 3.设置开机自动启动sshd:chkconfig --level 35 sshd on 4.建立私钥公钥:ssh-keygen -t rsa [[email protected] ~]$ ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/ws