ssh无密码登录
2017-08-30 13:36
218 查看
生成ssh-keygen
生成了公钥~/.ssh/id_rsa.pub 私钥~/.ssh/id_rsa
输入命令
将公钥传递到远程主机,完成
>ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (~/.ssh/id_rsa): ~/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in ~/.ssh/id_rsa. Your public key has been saved in ~/.ssh/id_rsa.pub. The key fingerprint is: 03:5f:cd:46:00:53:85:f4:1d:b7:b7:5f:cd:56:43:5b cbs@localhost The key's randomart image is: +--[ RSA 2048]----+ | o+++o ..E| | ..= ..o+| | . . = .+o| | o . . .*| | S .=| | . .o| | .| | | | | +-----------------+
生成了公钥~/.ssh/id_rsa.pub 私钥~/.ssh/id_rsa
输入命令
ssh user@host "cat >>~/.ssh/authorized_keys" < ~/.ssh/id_rsa.pub
将公钥传递到远程主机,完成
相关文章推荐
- ssh自动输入密码登录服务器/ssh免输入密码登录/非交互ssh 密码验证
- 实现ssh一次并exit后,以后ssh都不用输密码即可登录
- 普通用户实现ssh无密码登录
- Xshell配置ssh免密码登录
- 在freeBSD服务器之间搭建ssh无密码登录
- SSH免密码登录
- 局域网内ssh免密码任意登录
- OpenSuSE的ssh无法使用密码登录问题的解决办法
- ssh免密码登录
- ubuntu 安装SSH并设置免密码登录
- 解决root用户ssh配置无密码登陆/hadoop用户照仿可以实现相同功能:hadoop用户登录并且把命令的所有root换成home/hadoop
- ssh免密码登录、secureCRT免密码登录详解
- 配置SSH无密码登录时遇到的问题
- Linux/UNIX下使用ssh-keygen设置SSH无密码登录
- ssh免密码登录
- 在CentOS/RHEL上设置SSH免密码登录
- SSH-免密码互相远程登录
- mac的终端下面使用ssh user@localhost输入密码 不能正常登录
- ssh 免密码登录
- ssh免输入密码登录