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

 

首先确定你的ubuntu能够联网(我用的是虚拟机,用桥接方式,设置ubuntu和虚拟网卡和真正的电脑一个网段,然后就能上网了),然后执行:

sudo apt-get update

 

结束后执行:

sudo apt-get install openssh-server

 

然后查看ssh

ps -ef | grep ssh

如果看到sshd说明成功。

 

然后可以在其他地方用ssh工具远程登录了。

 

 

如果需要代理,在之前执行:

export http_proxy= "http://用户名:密码@代理IP:代理端口"

更多代理:http://wiki.ubuntu.org.cn/%E4%BB%A3%E7%90%86

猜你喜欢

转载自bnmnba.iteye.com/blog/1490752
今日推荐