Ubuntu 12.04配置SSH

来源:互联网 发布:孕八周孕囊数据看男女 编辑:程序博客网 时间:2024/05/21 17:06

2012-05-28 17:34:09|  分类: IT |  标签:ubuntu  ssh  安装  12.04  |字号 订阅

下载安装文件:
1,在https://launchpad.net/ubuntu/precise/i386/openssh-client/1:5.9p1-5ubuntu1 下载 openssh-client_5.9p1-5ubuntu1_i386.deb 
2,在https://launchpad.net/ubuntu/precise/i386/openssh-server/1:5.9p1-5ubuntu1 下载 openssh-server_5.9p1-5ubuntu1_i386.deb
3,在https://launchpad.net/ubuntu/precise/i386/ssh/1:5.9p1-5ubuntu1 下载 ssh_5.9p1-5ubuntu1_all.deb 

安装第一个文件:
root@ubuntu:~/downloads# sudo dpkg -i openssh-client_5.9p1-5ubuntu1_i386.deb 

安装第二个文件
root@ubuntu:~/downloads# sudo dpkg -i openssh-server_5.9p1-5ubuntu1_i386.deb 

安装第三个文件
root@ubuntu:~/downloads# sudo dpkg -i ssh_5.9p1-5ubuntu1_all.deb 

测试。
root@ubuntu:~/downloads# ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is 2e:e9:11:4f:dc:f7:fc:54:a1:4b:06:e4:85:5e:87:c2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)

 * Documentation:  https://help.ubuntu.com/

Last login: Mon May 28 00:44:32 2012