您的位置:首页 > 运维架构

ubuntu 安装 openssh-server

2013-01-19 13:42 477 查看
一直想不下linux技术,一直没有时间弄,最近由于工作上的需要,需要熟悉linux系统,借此机会好好学习一下

首是是最其本的,安装openssh-server,方便远程访问,使用Putty可以访问ubuntu

    PuTTY 是一套免费的 SSH / Telnet 程序,它可以连接上支持 SSH Telnet 联机的站台,并且可自动取得对方的系统指纹码(Fingerprint)。建立联机以后,所有的通讯内容都是以加密的方式传输,因此你再也不用害怕使用 Telnet 在 Internet或公司的内部网络传输资料时被他人获知内容了!

经过多方查找资料,终于明白安装过程了,具体如下:

第一步:Ubuntu 电脑上需要安装 openssh-server :

        sudo apt-get install openssh-server

由于默认Ubuntu采用UTF-8的字符集,所以putty需要做一些设置:

点击左边的 Windows -> Appearance 设置 Font settings ,点击 Change... 按钮选择为 仿宋体 或者 新宋体.

点击左边的 Windows -> Translation 设置 Character set translation 为 UTF-8

然后,点击 Open 连接服务器即可

第二步:安装的时候,可能不能成功安装openssh-server,报以下错误

现在没有可用的软件包 openssh-server,但是它被其它的软件包引用了.

这可能意味着这个缺失的软件包可能已被废弃,或者只能在劳动保险发布源中找到.

E:软件包openssh-server还没有可供安装的候选者

解决办法:

当前的源类表中没有你要安装的软件包,修改 /etc/apt/sources.list 添加源列表,添加以下源

# Archive.ubuntu.com 欧洲,此为官方源,推荐使用 ,PING=500

deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://archive.ubuntu.org.cn/ubuntu-cn/ feisty main restricted universe multiverse

# 中国 台湾省台湾大学,推荐网通用户使用,电信PING平均响应速度41MS,PING=100

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main multiverse restricted universe

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main restricted universe multiverse
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: