------------------------------------ 版权信息 ------------------------------------
此文链接: http://blog.csdn.net/doniexun/article/details/45268365
此文作者: Windness
版权说明: 此文为作者经过检索网上资源及根据个人开发经验整理所得,所有参考文献均已在文末标注,转载请务必保留本文链接及作者信息!
------------------------------------ 版权信息 ------------------------------------
1. Ubuntu14.04安装SSH
命令: # sudo apt-get install openssh-server
2. 启动SSH Server
命令: # sudo /etc/init.d/ssh start
3. 在控制端(安装putty的一侧,Windows或其他Linux OS)安装和配置putty
3.1 下载安装putty
官方主页: http://www.putty.org/
下载页面: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
# 在Windows上,直接下载二进制可执行文件比较方便
二进制可执行文件下载链接: http://tartarus.org/~simon/putty-snapshots/x86/putty.exe
源码下载链接: http://the.earth.li/~sgtatham/putty/latest/putty-src.zip
# 在Linux上,可以下载二进制可执行文件或源码
源码下载链接: http://the.earth.li/~sgtatham/putty/latest/putty-0.64.tar.gz
3.2 配置putty
# Windows上配置Putty
1) 启动Putty, 在session category页上, 输入Host Name或IP Address, 以及Connection Type, 由于Ubuntu一侧的SSH Server的默认监听端口号是22,故一般只需要输入Ubunt一侧提供SSH服务的IP地址或主机名即可,端口号和连接类型分别保持"22"和"SSH"不变即可.
2) 在Putty中, Window/Appearance中设置字体,设置一个Ubuntu一侧可接受的字体.
3) 在Putty中,Window/Translation中设置编码,设置Remote Character Set为UTF-8编码集.
4) 在Putty中, Window/Colors中设置前景色,设置为Default Foreground Color即可.
5) 在Putty中, 回到Session Category页, 输入Session名,并保存(save).
6) 在Putty中, 直接点Open即可进行连接.
注意: 登录时,若无法直接用root帐号登录,可以尝试先登录一个普通用户帐号,再利用su或sudo命令切换身份.
# Linux上配置Putty
TODO 暂时未尝试,以后需要时再补充.
4 参考资料
1) Putty官网 http://www.putty.org 及 http://www.chiark.greenend.org.uk/~sgtatham/putty/
2) SSH Secure Shell Client http://ultra.pr.erau.edu/~jaffem/tutorial/SSH_secure_shell_client.htm
3) ubuntu下安装配置SSH,Putty http://blog.csdn.net/backtracker/article/details/6642784