• 安装ssh服务 sudo apt install openssh-server
  • 启动ssh服务 service sshd start
  • 设置开机运行 sudo systemctl enable ssh
  • 查看进程在不在 ps -ef | grep ssh
  • 客户端选择 Xshell,Ubuntu系统里ifconfig查看IP地址(桥接模式)为192.168.1.8,在xshell里输入ssh [email protected]xiong创建的Ubuntu账户名称,输入密码就连接上了
    Ubuntu用ssh连接虚拟机

相关文章: