环境说明:
SSH工具:Xshell
虚拟机:VMware
Linux系统:Ubuntu-16.04-desktop
操作步骤
Ubuntu默认自带了ssh-client可以远程连接Linux
-
ssh username@host
由于没有ssh-server,所以无法被连接,可以如下命令验证是否已经安装ssh-server
ps -e|grep ssh
如果没有显示sshd,则说明未安装ssh-server
安装ssh-server
sudo agt-get install openssh-server
然后再安装上述的命令验证ssh-server是否启动,如果未显示sshd,说明未启动成功,然后通过如下命令启动ssh
/etc/init.d/ssh start