ps -e | grep ssh
(base) hlly@hl:~$ ps -e | grep ssh
5458 ? 00:00:00 sshd
5576 ? 00:00:00 sshd
如果没有 sshd 服务 就安装
sudo apt install openssh-server
安装完成后 查看服务状态 默认安装完成会自动开启
(base) hlly@hl:~$ service sshd status
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since 一 2022-11-07 15:42:09 CST; 8min ago
Main PID: 5458 (sshd)
CGroup: /system.slice/ssh.service
└─5458 /usr/sbin/sshd -D11月 07 15:42:09 hl systemd[1]: Starting OpenBSD Secure Shell server...
11月 07 15:42:09 hl sshd[5458]: Server listening on 0.0.0.0 port 22.
11月 07 15:42:09 hl sshd[5458]: Server listening on :: port 22.
11月 07 15:42:09 hl systemd[1]: Started OpenBSD Secure Shell server.
11月 07 15:44:15 hl sshd[5576]: Accepted password for hlly from 172.17.192.33 port 63530 ssh2
11月 07 15:44:15 hl sshd[5576]: pam_unix(sshd:session): session opened for user hlly by (uid=0)
11月 07 15:44:16 hl sshd[5685]: Accepted password for hlly from 172.17.192.33 port 63531 ssh2
11月 07 15:44:16 hl sshd[5685]: pam_unix(sshd:session): session opened for user hlly by (uid=0)
如果没有开启就手动开启
sudo service sshd start
之后获取服务器ip
连接远程服务可以使用 xshell,但是他是收费的,推荐两个免费的工具 很好用
FinalShell 和 MobaXterm1_CHS1


连接上去就可以使用了