1 回答
1.直接登录服务器, ps aux|grep ssh 查看是否有ssh 的进程
Mkey5:~ # ps aux|grep ssh
root 4386 0.0 0.0 16460 540 ? Ss Apr20 0:04 /usr/bin/gpg-agent --sh --daemon --write-env-file /root/.gnupg/agent.info /usr/bin/ssh-agent /bin/bash /etc/X11/xinit/xinitrc
root 4387 0.0 0.0 42640 748 ? Ss Apr20 0:00 /usr/bin/ssh-agent /bin/bash /etc/X11/xinit/xinitrc
root 4814 0.0 0.0 51744 1256 ? Ss Apr20 0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root 26258 0.0 0.1 86096 3264 ? Ss 10:31 0:00 sshd: root@pts/2
root 28011 38.4 0.0 5492 800 pts/2 D+ 11:15 0:00 grep ssh
2 修改sshd_config .配置文件
vi /etc/ssh/sshd_config .
将Port 65422 修改为Port 22
将 PermitRootLogin no 修改为 PermitRootLogin yes
重启ssh
/etc/init.d/sshd restart
这家伙很懒,什么都没留下...