blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

使用ssh-keygen和ssh-copy-id三步实现SSH无密码登陆远程主机

发表于 2019-08-01 | 分类于 运维 | 0 | 阅读次数 728

首先产生公钥与私钥 提示问题全部直接回车保持默认

ssh-keygen

ssh-keygen-1 这样就已经成功生成

将公钥复制到远程机器中

用法 ssh-copy-id -i ~/.ssh/id_rsa.pub 用户名@IP或域名

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

输入要访问的主机IP的用户名密码 ssh-keygen-2 然后我们验证一下

ssh [email protected]

ssh-keygen-3 无密码登陆成功!

  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/08/01/1564636265514
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
IDEA 自定义方法注释
jenkins 集群 搭建
© 2023 blank
Everything is energy and everything has a frequency