Summer's Blog
😈酷炫主页
✨运维
🎉安装
👀踩坑
  • k8s
  • shell
  • python
  • redis
  • elasticsearch
  • mysql
  • ceph
  • spark
  • 关于
  • 思维
  • 命令
  • 友链
  • 分类
  • 标签
  • 归档
👨‍👩‍👦‍👦腾讯云社区
🗣GitHub

Summer———夏苏文

💨运维界的前行者
😈酷炫主页
✨运维
🎉安装
👀踩坑
  • k8s
  • shell
  • python
  • redis
  • elasticsearch
  • mysql
  • ceph
  • spark
  • 关于
  • 思维
  • 命令
  • 友链
  • 分类
  • 标签
  • 归档
👨‍👩‍👦‍👦腾讯云社区
🗣GitHub
  • vim使用技巧

  • zabbix使用技巧

  • linux使用技巧

    • 查看隐藏文件大小
    • 修改 hostname
    • 查看硬盘大小
    • 各种cd之间的区别汇总
    • 查看CPU个数
    • 查看当前目录文件数
    • rwxrwxr含义
    • 查看占用内存CPU最多进程
    • yum下载 RPM 包
    • rz命令和sz命令使用方法
    • 服务器ntp时间同步
    • ssh免密配置
      • 1.生成密钥私钥
      • 2.上传对方服务器
    • samba的配置和使用
    • root盘满了怎么办
    • 如何屏蔽linux服务
    • 如何替换jar中的jar配置
    • Linux启动流程
    • 统计脚本执行时间
    • 批量替换示例
    • 大文件切割技巧
    • 一条命令让CPU嗨起来
    • 记录服务器raid操作
    • linux测试网速
    • VM虚拟机扩容操作
    • linux如何快速删除大文件
    • 正则处理文本记录
    • linux测试硬盘读写操作
    • 根据进程查看文件位置
    • iostat查看硬盘读写速度
    • linux内核调优参数记录
  • mysql使用技巧

  • docker使用技巧

  • k8s使用技巧

  • redis使用技巧

  • elasticsearch使用技巧

  • window使用技巧

  • nginx使用技巧

  • ansible使用技巧

  • 运维
  • linux使用技巧
summer
2020-01-29

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
#linux
上次更新: 1/6/2021, 9:24:31 PM
服务器ntp时间同步
samba的配置和使用

← 服务器ntp时间同步 samba的配置和使用→

最近更新
01
ceph块设备使用iscsi
03-29
02
Citrix设置vm开机自启动
02-17
03
ntp与chrony时间同步
12-17
更多文章>
Theme by Vdoing | Copyright © 2019-2023 夏苏文 | MIT License

网站已在灾难中运行:

蜀ICP备2022029853号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式