开发者社区 问答 正文

linux中端口不使用22的方法是什么呢?

linux中端口不使用22的方法是什么呢?

展开
收起
游客qzzytmszf3zhq 2021-12-05 15:28:04 280 分享 版权
1 条回答
写回答
取消 提交回答
  • 在本地安装[root@localhost ~]# yum install nmap -y,nmap用于扫描服务器上的端口
    
    [root@localhost ~]# nmap xxx.xxx.xxx.xxx
    
    Starting Nmap 6.40 ( http://nmap.org ) at 2020-03-03 10:43 CST
    Nmap scan report for xxx.xxx.xxx.xxx
    Host is up (0.080s latency).
    Not shown: 995 filtered ports
    PORT    STATE SERVICE
    22/tcp  open  ssh
    25/tcp  open  smtp
    80/tcp  open  http
    110/tcp open  pop3
    443/tcp open  https
    
    可以看到当前ssh正在22端口上运行
    
    
    2021-12-05 15:28:35
    赞同 展开评论