ssh配置免密登录
2017-09-26 00:00
197 查看
[sunday@CentOS-00 ~]$ cd .ssh/ [sunday@CentOS-00 .ssh]$ ll 总用量 4 -rw-r--r--. 1 sunday sunday 391 9月 26 11:25 known_hosts [sunday@CentOS-00 .ssh]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/sunday/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/sunday/.ssh/id_rsa. Your public key has been saved in /home/sunday/.ssh/id_rsa.pub. The key fingerprint is: c3:92:57:dd:5d:5f:52:55:cc:e4:76:a1:ed:3b:fc:57 sunday@CentOS-00 The key's randomart image is: +--[ RSA 2048]----+ | .*X| | . .o+B| | . ....*| | o . ...| | o S . | | o . . E| | +.| | +| | o| +-----------------+ [sunday@CentOS-00 .ssh]$ ll 总用量 12 -rw-------. 1 sunday sunday 1675 9月 26 11:31 id_rsa -rw-r--r--. 1 sunday sunday 398 9月 26 11:31 id_rsa.pub -rw-r--r--. 1 sunday sunday 391 9月 26 11:25 known_hosts [sunday@CentOS-00 .ssh]$ touch authorized_keys [sunday@CentOS-00 .ssh]$ ll 总用量 12 -rw-rw-r--. 1 sunday sunday 0 9月 26 11:32 authorized_keys -rw-------. 1 sunday sunday 1675 9月 26 11:31 id_rsa -rw-r--r--. 1 sunday sunday 398 9月 26 11:31 id_rsa.pub -rw-r--r--. 1 sunday sunday 391 9月 26 11:25 known_hosts [sunday@CentOS-00 .ssh]$ cat id_rsa.pub > authorized_keys [sunday@CentOS-00 .ssh]$ chmod 600 authorized_keys [sunday@CentOS-00 .ssh]$ ssh localhost Last login: Tue Sep 26 11:25:20 2017 from localhost
相关文章推荐
- ubuntu ssh 无密码登录配置
- 多个客户机之间配置ssh免秘钥登录
- 三步配置SSH 免密码登录
- 集群中配置多台计算机之间ssh无密码登录
- Linux管理工作,实例讲解工作中使用ssh证书登录的实际流程,讲解ssh证书登录的配置原理,基于配置原理,解决实际工作中,windows下使用SecureCRT证书登录的各种问题,以及实现hadoo
- ssh配置公私钥远程登录Linux主机
- 配置ssh免密码登录
- 在VMWare Workstation上使用RedHat Linux安装和配置Hadoop群集环境03_配置虚拟机之间SSH无密码登录
- 华为交换机配置ssh rsa认证登录方式
- 如何配置ssh免密码登录
- centos 6.5 配置ssh免登录
- Ubuntu hadoop 伪分布式环境搭建步骤+ssh密钥(免密码登录)配置
- 配置ssh公钥登录提示还是输入密码
- linux配置ssh免密登录
- eclipse 配置git ssh登录
- ssh 配置免密钥登录
- 配置SecureCRT使用SSH公钥方式登录Linux服务器
- Ubuntu 16.04远程登录服务器--ssh的安装和配置
- Xshell配置ssh免密码登录-密钥公钥(Public key)与私钥(Private Key)登录
- 在配置无密码登录的时候,ssh老是提示输入密码