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命令完成更新。

ubuntu装openssh-client和openssh-server

ubuntu装openssh-client和openssh-server

2. 安装openssh-client和openssh-server

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

ubuntu装openssh-client和openssh-server

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

ubuntu装openssh-client和openssh-server

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

ubuntu装openssh-client和openssh-server

5. 启动服务

输入 service ssh start。

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-06-18
  • 2021-08-05
  • 2021-06-30
  • 2021-08-08
  • 2021-07-22
  • 2021-06-11
猜你喜欢
  • 2021-07-16
  • 2021-09-17
  • 2021-11-26
相关资源
相似解决方案