远程连接linux服务器网络基础知识
IP基本概念
远程连接linux服务器ssh介绍
查看ssh安装情况:
rpm -qa openssh openssl
服务端运行的ssh服务
查进程命令:ps -ef|grep ssh
有红框内的内容则表示ssh是可以的
注意:提供服务时会有端口
端口命令: ss -lntup|grep ssh 或者 netstat -lntup
重启ssh服务 :
systemctl restart sshd.service
查看状态:
systemctl status sshd.service启动服务:
systemctl start sshd.service重启服务:
systemctl restart sshd.service开机自启:
systemctl enable sshd.service