在 ubuntu10 下 安装 ssh

因为学习 hi3516 买来的学习板的环境是 ubuntu10 所以想在 ubuntu 10 上面安装 ssh

但是 发现安装过程中 提示 失败, 应该是源过期了

更新源 

参考文章

转载自:http://blog.csdn.net/suquan629/article/details/52333769

ubuntu10.4到2016年早已停止了更新支持,ubuntu也不再维护了。官方源以及第三方源包括163,sohu等也不再维护。那是不是意味着这个版本的ubuntu只能放弃使用?

当然不是的!!!

为了解决这个问题,ubuntu提供了old-release的方案,通过命令行更新源如下:

sudo gedit /etc/apt/sources.list,打开源列表文件,把里面的地址全删除,然后换上如下的地址,如果你是其他版本的,把lucid替换即可。

deb http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse   
deb http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse   
deb-src http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse 

然后再运行sudo apt-get update。

 

更新了源之后 安装 ubuntu16 的安装方法就ok 了

sudo ps -e |grep ssh

如果安装了的是会有sshd服务的

 

安装openssh-server,使用命令:

sudo apt-get install openssh-server

 

再 sudo ps -e |grep ssh

可以看到已经启动 sshd 服务

 

  • 启动ssh命令:service sshd start
  • 停止ssh命令:service sshd stop

 

在其他机器上面,运行 Xshell 或者 putty 使用账户登录

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章