1、检测是否安装openssh-server,没有任何输出,表示没有安装。
# yum list installed | grep openssh-server
2、使用vim打开sshd服务配置文件,取消注释以下三行
# vim /etc/ssh/sshd_config
3、开启sshd服务:# systemctl start sshd.service
检测sshd服务是否开启:# ps -e | grep sshd
4、检测22号端口是否开启:# netstat -an | grep 22
5、将sshd服务设置为开机自启动:# systemctl enable sshd.service
检测是否开启:# systemctl list-unit-files | grep sshd
6、ifconfig
查看ip,使用该ip进行ssh远程连接