开启 Ubuntu SSH 服务

Ubuntu 安装完成后,SSH 服务可能并未打开,因此也无法通过 putty 等 SSH Client 进行远程连接。

1. 更新源列表

sudo apt-get update

2. 安装 openssh-server

sudo apt-get install openssh-server

3. 开启 SSH 服务

sudo service ssh start

4. 确认 SSH 服务已经开启

ps -e | grep ssh

可能会显示如下的结果,证明 SSH 服务已经开启:
2536 ?        00:00:00 sshd

5. 通过 Putty 等 SSH Client 工具进行连接

你可能感兴趣的:(开启 Ubuntu SSH 服务)