ssh服务端安装
yum -y install openssh-server
修改配置文件
vim /etc/ssh/sshd_config
ssh客户端安装
yum -y install openssh-client
设置允许主机远程连接主机白名单
vim /etc/hosts.allow
添加
all:192.168.0.1:allow #允许192.168.0.1的所有访问
ssh:192.168.0.1:allow #允许192.168.0.1的ssh远程连接