小小百科网

标题: Debian 安装SSH Server,解决装机后无法SSH [打印本页]

作者: xiaoxiao    时间: 2016-4-12 16:02
标题: Debian 安装SSH Server,解决装机后无法SSH
本帖最后由 xiaoxiao 于 2016-4-12 16:03 编辑

一:VNC进去后先修改Debian系统源
  1. vi /etc/apt/sources.list
复制代码


对于Debian 7:
deb http://http.us.debian.org/debian/ wheezy main
deb-src http://http.us.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://http.us.debian.org/debian/ wheezy-updates main
deb-src http://http.us.debian.org/debian/ wheezy-updates main
deb http://http.debian.net/debian wheezy-backports main

对于Debian 8:
deb http://http.us.debian.org/debian/ jessie main
deb-src http://http.us.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://http.us.debian.org/debian/ jessie-updates main
deb-src http://http.us.debian.org/debian/ jessie-updates main


二:先更新源
  1. apt-get update
复制代码


三:升级系统
  1. apt-get upgrade -y
复制代码


四:安装ssh服务
  1. apt-get install ssh
复制代码











欢迎光临 小小百科网 (http://www.aixiaoxiao.cn/) Powered by Discuz! X3.3