首页
✨运维
🎉安装
👀踩坑
🤷‍♂️学习
😊关于
  • 分类
  • 标签
  • 归档
GitHub

Summer

运维界的小白
首页
✨运维
🎉安装
👀踩坑
🤷‍♂️学习
😊关于
  • 分类
  • 标签
  • 归档
GitHub
  • vim使用技巧

  • zabbix使用技巧

  • linux使用技巧

    • 查看隐藏文件大小
    • 修改 hostname
    • 查看硬盘大小
    • 各种cd之间的区别汇总
    • 查看CPU个数
    • 查看当前目录文件数
    • rwxrwxr含义
    • 查看占用内存CPU最多进程
    • yum下载 RPM 包
    • rz命令和sz命令使用方法
    • 服务器ntp时间同步
    • ssh免密配置
      • 1.生成密钥私钥
      • 2.上传对方服务器
    • root盘满了怎么办
    • 如何替换jar中的jar配置
    • Linux启动流程
    • 优秀命令汇总
    • 统计脚本执行时间
  • mysql使用技巧

  • docker使用技巧

  • k8s使用技巧

  • redis使用技巧

  • elasticsearch使用技巧

  • window使用技巧

  • nginx使用技巧

  • 运维
  • linux使用技巧
summer
2020-11-09

ssh免密配置

# 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]-----+
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# 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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
服务器ntp时间同步
root盘满了怎么办

← 服务器ntp时间同步 root盘满了怎么办→

最近更新
01
redis持久化
12-08
02
redis为什么这么快
12-08
03
redis的优缺点
12-08
更多文章>
Theme by Vdoing | Copyright © 2019-2020 Evan Xu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式