ubuntu 下装ssh
来源:互联网 发布:德国的gdp数据 编辑:程序博客网 时间:2024/06/15 08:34
环境
os:Ubuntu 12.04
1.安装
服务器端:
sudo apt-get install ssh openssh-server ssh-import-id
客户端:
www.163ns.com @linux:~$sudo apt-get install openssh-client
2.配置
2.1.修改ssh端口
默认的ssh端口是22,太扎眼,建议改成别的端口,比如3301。
修改 /etc/ssh/sshd_config文件
将其中的
# port 22
改成
port 3301
改完要重启ssh服务
www.163ns.com @linux:~$ sudo /etc/init.d/ssh restart
3.登录
一般的登录ssh服务器的方式有两种,一种是使用密码,还有一种是使用密钥文件登录。
3.1.使用密码登录
www.163ns.com @linux:~$ ssh testuser@192.168.56.101 -p3301
testuser@192.168.56.101's password:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation: https://help.Ubuntu.com/
System information as of Thu May 17 00:31:21 CST 2012
System load: 0.0 Processes: 73
Usage of /: 9.1% of 19.18GB Users logged in: 1
Memory usage: 14% IP address for eth0: 192.168.56.101
Swap usage: 0%
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Thu May 17 00:22:04 2012 from 192.168.56.1
看到类似这些信息就说明登录成功了。
这种方式比较简单,但安全性稍差。
- ubuntu 下装ssh
- ubuntu 下装中文输入法
- Win7下装Ubuntu
- Ubuntu下装Apache
- ubuntu下装交叉编译器
- ubuntu 下装ie7
- Ubuntu下装Win7
- window下装ubuntu双系统
- ubuntu下装xp
- ubuntu 下装pyqt4
- vm8下装ubuntu
- ubuntu下装中文输入法
- ubuntu下装git
- win7下装ubuntu
- ubuntu 下装feedparser
- Ubuntu下装常用软件
- window下装ubuntu虚拟机
- Ubuntu 下装Mysql
- 2013 ISC:12位讲师的安全技术经验与最佳实战分享(含PDF)
- URAL 1016 Cube on the Walk (SPFA+HASH)
- 2013长沙网络赛H题Hypersphere (蛋疼的题目 神似邀请赛A题)
- 斐波那契数列(迭代)
- FindBugs 简介
- ubuntu 下装ssh
- JavaScript跨域总结与解决办法
- 技术备忘3
- 设置子控件字体
- 算法洗脑系列(8篇)——第一篇 递推思想
- 猴子吃桃[迭代]
- c#语言中 (int)、int.Parse()、int.TryParse、Convert.ToInt32的区别
- Array的join()方法会忽略null和undefined
- JNI 在Android中使用System.loadLibrary()