varden

在用户家目录下创建SSH客户端配置文件.ssh/config,内容如下:

# 单个主机配置
Host testhost
    HostName 192.168.1.100
# 全局配置
Host *
    User root
    Port 22

示例

Host a1n1
   Hostname a1-node1
   User root
   Port 22
   IdentityFile /root/38/id_rsa
Host b1n1
   Hostname b1-node1
   User root
   Port 22
   IdentityFile /root/38/id_rsa

分类:

技术点:

相关文章:

  • 2021-09-26
  • 2022-01-03
  • 2021-09-28
  • 2021-04-11
  • 2021-08-10
  • 2021-04-19
  • 2021-10-21
  • 2021-04-13
猜你喜欢
  • 2021-05-26
  • 2021-10-25
  • 2021-11-20
  • 2021-12-05
  • 2022-02-12
  • 2021-08-23
  • 2021-06-19
相关资源
相似解决方案