ubuntu 配置SSH
来源:互联网 发布:亚裔 美国 知乎 编辑:程序博客网 时间:2024/05/21 06:37
1.安装
lord@dell:~$ sudo apt-get install ssh
2设置无密码登录
lord@dell:~$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsaGenerating public/private dsa key pair.Your identification has been saved in /home/lord/.ssh/id_dsa.Your public key has been saved in /home/lord/.ssh/id_dsa.pub.The key fingerprint is:c6:82:68:e8:e0:d2:93:b5:51:70:16:f6:6a:fa:41:66 lord@dellThe key's randomart image is:+--[ DSA 1024]----+| . =. || = . || . . || . . o o ||o o + E S ||+o o O o ||.o+ o . ||. . . . || . |+-----------------+lord@dell:~$ssh-keygen是生成密钥的命令
-t 密钥类型参数,dsa是一种密钥类型
-P密钥参数 ,设置为 ‘’
~是当前用户的意思,我的实验环境用户名为lord
由上图命令及结果可以看出 身份信息存入到了/home/lord/.ssh/id_dsa下,公钥存入/home/lord/.ssh/id_dsa.pub
(如何查看这些文件?.ssh文件为隐藏文件夹,Ctrl + H可以显示隐藏文件夹)
3.验证安装
lord@dell:~$ ssh -versionOpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011Bad escape character 'rsion'.lord@dell:~$
lord@dell:~$ ssh localhostlord@localhost's password: Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) * Documentation: https://help.ubuntu.com/Last login: Wed Nov 16 14:14:38 2011 from localhostlord@dell:~$
- Ubuntu配置SSH服务
- ubuntu 配置SSH
- Ubuntu ssh 配置,常用命令
- ubuntu配置ssh
- Ubuntu 12.04配置SSH
- ubuntu中配置SSH
- Ubuntu SSH证书配置
- ubuntu配置ssh
- Ubuntu ssh配置
- Ubuntu配置ssh server
- ubuntu SSH配置解决方法
- Ubuntu配置ssh服务
- Ubuntu SSH 配置
- ubuntu ssh配置 + xshell
- Ubuntu 7.10配置SSH服务
- Ubuntu下配置SSH服务
- ubuntu hadoop eclipse ssh 配置
- 为Ubuntu配置SSH服务
- [观点]从iOS-Android-WP7开发环境搭建感受平台风格
- msecs_to_jiffies详解
- “检查所存网页的较新版本”功能项的设置
- MapInfo 查询数据操作
- 初学java时写的
- ubuntu 配置SSH
- 关于GCC的 “-fpack-struct”项
- iphone 类库
- m2eclipse: Eclipse is running in a JRE, but a JDK is required
- DirectX函数大全总结3
- 编译工程时报java:[1,0] illegal character: \65279问题排查与解决过程
- Oracle各种启动程序方式详细介绍
- Android界面刷新的方法
- Oracle查询用户所有表的语句