ubuntu ssh无密钥登陆
2014-04-25 13:57
169 查看
1.ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
bb:e6:a8:89:1c:2f:79:71:68:6d:42:1a:9c:29:f4:18 root@cao-work
The key's randomart image is:
+--[ RSA 2048]----+
| |
| E |
|..+o |
|..=.. |
| . + o S |
| . = + . |
| .o = . |
| .o+.. ... |
| oo+..oo |
+-----------------+
2.scp /root/.ssh/id_rsa.pub root@192.168.0.49:/root/.ssh/authorized_keys
3.ssh root@192.168.0.49
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
bb:e6:a8:89:1c:2f:79:71:68:6d:42:1a:9c:29:f4:18 root@cao-work
The key's randomart image is:
+--[ RSA 2048]----+
| |
| E |
|..+o |
|..=.. |
| . + o S |
| . = + . |
| .o = . |
| .o+.. ... |
| oo+..oo |
+-----------------+
2.scp /root/.ssh/id_rsa.pub root@192.168.0.49:/root/.ssh/authorized_keys
3.ssh root@192.168.0.49
相关文章推荐
- 配置ssh无密钥登陆
- centos7 ssh免密钥登陆笔记
- Linux多台服务器共用密钥ssh自动登陆
- 使用public/private key让putty(ssh)自动登录(以及linux上使用密钥做ssh自动登陆)
- 使用SSH方式root帐号登陆ubuntu14.04
- Linux(Ubuntu)ssh免密码登陆
- ubuntu ssh 免密码登陆
- SSH密钥登陆linux服务器注意事项
- 多台服务器通过ssh 无密钥直接登陆主机
- coreos 创建使用密钥登陆的ubuntu 基础镜像
- 使用ssh公钥密钥自动登陆linux服务器
- hadoop 配置主机的SSH无密钥登陆
- 使用密钥登陆SSH的方法
- 使用SecureCRT远程 SSH 登陆 CentOS 和 Ubuntu
- 详解Ubuntu下ssh服务的安装与登陆(ssh远程登陆)
- ssh-keygen生成密钥设置方法,让ubuntu无密码登录linux
- 多个网站使用不同的SSH密钥登陆
- 为Ubuntu server配置ssh服务 方便远程登陆
- ssh密钥登陆,免输入yes和更新known_hosts文件
- Ubuntu14.04桥接网络设置与SSH登陆