【个人笔记】ubuntu下安装ssh
2014-10-13 15:09
441 查看
为了学习下ubuntu server有关的内容,在vm10上安装了ubuntu server12.04 (32位)的系统,想从windows下用xshell连接server时,发现总是报错,以下为排查问题的一些做法:1、首先在ubuntu server中用ifconfig查看ip对不对,这一步我设置是对的,并且在windows下能ping通地址2、根据网上说的,可能没有启动ssh,所以执行service ssh start 发现根本没有这个服务,所以确定了是因为没有安装这个服务造成的3、安装ssh服务:执行 apt-get install openssh-server 继续报错,说是 缺少依赖的包:libwrap0 ,但是几经周折也没安装成功4、后来找到了原因,原来是源的问题,需要更新/etc/apt/sources.list :首先先备份 cp /etc/apt/sources.list /etc/apt/sources.list.old
将原来的信息更换为:
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse[/code]
5、再次apt-get update 然后 apt-get install openssh-server ,安装成功,xshell也正常连接了
相关文章推荐
- 【个人笔记重点,不作为参考】主题:ubuntu 14.04 nfs安装与配置
- 【个人笔记】Ubuntu安装arm-linux-gcc 交叉工具链
- 【个人笔记重点,不作为参考】主题:Ubuntu系统中安装RPM格式包的方法
- 【个人笔记】Ubuntu使用|openssl,ssh等出现了很多的问题
- ubuntu 14.0.4LTS安装LNMP php7.0(主要用于个人笔记 勿喷)
- Ubuntu 16.04 ssh安装--个人心得
- 【个人笔记重点,不作为参考】主题: Ubuntu 14.04lts安装vncserver
- 开始hadoop前的准备:ubuntu学习笔记-基本环境的搭建(ssh的安装,SecureCRT连接,vim的安装及使用、jdk的安装)
- Linux学习笔记二:Ubuntu安装SSH(Secure Shell)服务
- Ubuntu安装笔记(三)
- Ubuntu-8.10-SERVER 安装笔记
- ubuntu下安装及启动ssh
- Ubuntu 学习笔记(一) Ubuntu 硬盘安装
- Ubuntu 关于DNS Server的安装及配置简单笔记
- Ubuntu学习笔记:通过ssh远程登录服务器
- Apache Trac SVN Mercurial 安装笔记 (Ubuntu Server 8.04)
- ubuntu安装ssh
- ubuntu 学习笔记2 Tweak 安装
- 在Ubuntu 9.04上安装Emacs23的笔记
- ubuntu安装ssh和vsftpd