Xshell连Centos7 经验分享
netstat的基本使用
yum -y install net-tools
查看22端口的开启状态
netstat -anp | grep 22
firewalld的基本使用
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用 : systemctl disable firewalld
开机启用 : systemctl enable firewalld
开放指定端口:firewall-cmd --zone=public --add-port=80/tcp --permanent
ssh的基本使用
安装:yum install openssh-server
启动:systemctl start sshd.service
关闭:systemctl stop sshd.service
查看状态:systemctl status sshd.service
本人运行环境:
本地环境:
Xshell 6,WIN7
服务器环境:
Vultr.Centos7
要使用Xshell等软件连接Centos7注意达到以下几个条件:
1.防火墙关闭/防火墙设置开放指定端口;
2.服务器开启了SSHD服务;
3.设置SSHD的开放端口,进入/etc/ssh 的sshd_config文档 把#Port 22 的“#”删掉,然后重启SSHD服务;

本文详细介绍了如何使用Xshell连接Centos7系统,包括netstat和firewalld的基本使用,通过yum安装openssh-server并配置sshd服务,以及在Centos7上设置防火墙以开放指定端口的方法。
1916

被折叠的 条评论
为什么被折叠?



