查看ubuntu中ssh端口占用的方法:
1.打開終端命令行模式。
2.輸入以下命令查看ssh端口占用即可。
netstat -nlap|grep sshd|grep tcp|grep LISTEN
3.若想清除占用,可通過kill命令殺掉對應的端口進程。
kill 123 #清除pid為123的端口進程