vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
保存退出
service ssh restart
ss -tunlp
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=5690,fd=3))
tcp LISTEN 0 128 127.0.0.1:6010 0.0.0.0:* users:(("sshd",pid=6328,fd=9))
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=5690,fd=4))
tcp LISTEN 0 128 [::1]:6010 [::]:*