首页 > 系统相关 >window远程登录linux使用别名的形式

window远程登录linux使用别名的形式

时间:2022-08-30 17:24:04浏览次数:74  
标签:rsa 别名 window ssh linux 172.24 root id

ssh免密登录远程机器使用别名

server

#prerequirement
ssh-keygen -t rsa
ssh-copy-id -i id_rsa.pub xxx     // ~/.ssh/authorized_keys

公钥 copy到all server,私钥放到client节点

client

#auth
ssh [email protected]   --> ssh 10

#config
.ssh/config
Host 10
  HostName 172.24.100.10
  User root
Host 11
  HostName 172.24.100.11
  User root
  IdentityFile ~/.ssh/id_rsa

ssh

标签:rsa,别名,window,ssh,linux,172.24,root,id
From: https://www.cnblogs.com/xiaochina/p/16640106.html

相关文章

  • linux安装java环境
    1.在线下载jdkwget--no-check-certificate--no-cookies--header"Cookie:oraclelicense=accept-securebackup-cookie"http://download.oracle.com/otn-pub/java/jdk/......
  • linux 启动脚本
    #!/bin/bashAPP_NAME=app_api.jar#使用说明,用来提示输入参数usage(){echo"pleaseenterthecorrespondingparameters[start|stop|restart|status]"......
  • Linux bash which command All In One
    LinuxbashwhichcommandAllInOnewhichPython3$whichpython#pythonnotfound$whichpython3/usr/bin/python3VSCode$whichcode/usr/local/b......
  • Windows驱动签名,还需要使用EV代码签名证书吗?
    Windows驱动程序承担着硬件与系统交互的重要角色,确保驱动程序的兼容性、稳定性、可信性、安全性是Windows系统安全的重要部分。在2021年4月之前,开发者只需要使用微软交叉......
  • Linux firewall 命令
    常用命令开启端口命令firewall-cmd--zone=public--add-port=443/tcp--permanent--zone #作用域--add-port=80/tcp#添加端口,格式为:端口/通讯协议--permanent#永......
  • Linux 安装mongodb
    按照以前的习惯找了很多文档,都不可靠。然后选择了官方文档,很简单明了的好用在Ubuntu上安装MongoDBCommunityEdition—MongoDBManual然后就ok了......
  • Python 使用paramiko获取Linux远程端电脑挂载空间使用情况
    安装paramikopipinstallparamiko代码演示importjsonasJSONimportreimportparamikoimportsudsfromsuds.wsseimport*classLinuxMntListen():"""L......
  • redis(linux)
    官网下载安装包https://redis.io/download/安装gcc,命令yuminstallgcc进入安装目录make命令进行编译如果报错-jemalloc/jemalloc.h:没有哪个文件,首先看有没有gcc,然后......
  • linux磁盘初始化
    #新系统初始化注意:由于镜像已经做了初始化,所以拿到服务器后只许做以下操作即可使用1.磁盘挂载如果系统没有做逻辑卷的命令,需要自己安装yum-yinstalllvm2fdisk-lpvcr......
  • Linux系统的SSH优化
    在Linux系统中,我们想使用SSH命令登录到另一台服务器中,在第一次登录时,会提示我们验证指纹,如下所示同一网络下,为了确保你想SSH访问的Linux系统是无误的,可以在另一端确认指......