远程登录ubuntu ssh安装报错(Package opensshserver is not available)的问题

远程登录ubuntu ssh安装报错(Package openssh-server is not available)的问题

 
首先确定你的ubuntu能够联网(我用的是虚拟机,用桥接方式,设置ubuntu和虚拟网卡和真正的电脑一个网段,然后就能上网了),然后执行:
sudo apt-get update   一定要执行这个操作
 
结束后执行:
sudo apt-get install openssh-server
  www.2cto.com  
然后查看ssh
ps -ef | grep ssh
如果看到sshd说明成功。
 
然后可以在其他地方用ssh工具远程登录了。
原文地址:https://www.cnblogs.com/keepfocus/p/2604646.html