系统信息
[root@backup ~]# uname -r 2.6.32-696.el6.x86_64 [root@backup ~]# uname -m x86_64 [root@backup ~]# cat /etc/redhat-release CentOS release 6.9 (Final)
根据端口号22查找对应的服务名称
telnet 10.0.0.41 22 nmap -p 22 10.0.0.41 nc 10.0.0.41 22 ss -lntup | grep 22 netstat -lntup | grep 22 lsof -i :22根据进程名sshd查找对应的端口号
ss -lntup | grep sshd netstat -lntup | grep sshd查找一台服务器开放的全部端口
nmap -p 1-65535 10.0.0.41可能要花费一点时间 ,不妨把1-65535改成1-100,再尝试一下服务器
注:读者可根据本身的需求,进行修改命令,查找想要的结果ssh