ubuntu装openssh-client和openssh-server

1. 修改update源

  进入/etc/apt/目录,首先用cp命令将sources.list备份成sources.list.bk,然后复制http://www.cnblogs.com/eastson/archive/2012/08/24/2654163.html里面的163源,到sources.list中,覆盖掉原来的。然后用apt-get update命令完成更新。

2. 安装openssh-client和openssh-server

输入apt-get install openssh-client和 apt-get install openssh-server。

3. 安装openssh-server的时候报错。需要openssh-client(=1:5.9p1-5ubuntu1.4)版本,所以client要重新安装这个版本。注意字母不要输错。

4. 安装完后就可以再次安装openssh-server了,出现问句时按回车就行了。

5. 启动服务

输入 service ssh start。

 

posted @ 2014-11-20 14:55  凤舞十天  阅读(4877)  评论(0编辑  收藏  举报