ssh免密配置
2023-06-13 09:12:48 时间
# 1.生成密钥私钥
[root@master ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
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:
SHA256:NetuQCC4DHoQPQEPDD5rGOpva3vMWMobhk9GFUnwpAM root@master
The key's randomart image is:
+---[RSA 2048]----+
|BE.+o+. |
|++= =.o |
|o*.= + . o |
|+.* o .. o |
|o+ . .S . |
|o o . .. |
| o.=* .. |
| **.+ .. |
| o*= .. |
+----[SHA256]-----+
# 2.上传对方服务器
[root@master ~]# ssh-copy-id 192.168.0.88
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
The authenticity of host '192.168.0.88 (192.168.0.88)' can't be established.
ECDSA key fingerprint is SHA256:ZPLS5x78pbuuMIecl+HWHeDSkeG3aF6atbWZrvTSgyc.
ECDSA key fingerprint is MD5:fb:cd:88:c9:59:c9:c6:da:c5:32:15:5c:63:5f:ea:41.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.0.88's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh '192.168.0.88'"
and check to make sure that only the key(s) you wanted were added.
相关文章
- Linux 设置 SSH 密钥登陆及更换登录端口
- 盘点ssh客户端工具
- H3C路由交换 SSH配置
- CentOS VMware 下SSH配置方法详解程序员
- 远程连接探索Linux如何建立SSH远程连接(linux建立ssh)
- Linux开启SSH服务:让你的系统无处不在(linux开启ssh服务)
- 服务Linux查看SSH服务:实战指南(linux怎么查看ssh)
- 安装及使用Linux系统中SSH安装及使用指南(linux中ssh)
- 的安装Linux下SSH的安装:轻松连接远程服务器(linux下ssh)
- 密钥保护Linux服务器:存储SSH密钥的正确姿势(linux保存ssh)
- Linux下远程操作之SSH命令(linux命令ssh)
- 远程连接Linux服务器:SSH的使用(linux的ssh服务)
- 安装新手快速上手:SSH虚拟机安装Linux系统(ssh虚拟机linux)
- 如何使用SSH安装Linux系统(ssh安装linux)
- 如何在 Linux 中配置 ssh 登录导语
- PAC Manager是一款便捷的配置和管理SSH / Telnet连接的linux桌面应用程序。
- SSH连接Linux:探索无限可能(ssh登录linux)
- 【Linux下 SSH 安全配置指南】(sshlinux配置)
- SSH配置MySQL: 实现远程访问MySQL数据库的方法(ssh配置mysql)
- Securely Manage Your Oracle Database with SSH Access(sshoracle)
- PAC Manager是一款便捷的配置和管理SSH / Telnet连接的linux桌面应用程序。
- 快速搭建SSH项目Redis配置指南(ssh项目配置redis)
- 通过SSH如何配置Redis服务器(ssh怎么配置redis)
- 快速搭建Redis服务基于SSH安装篇(ssh安装redis)