linux 配置ssh 登录
来源:互联网 发布:闪电网络 中转交易 编辑:程序博客网 时间:2024/05/22 13:15
linux 配置ssh 登录
检查需要登录的服务器是否启用ssh登录
vim /etc/ssh/sshd_config
47 RSAAuthentication yes 48 PubkeyAuthentication yes 49 AuthorizedKeysFile ~/.ssh/authorized_keys
服务器生成key
ssh-keygen -t rsa
这个命令会在 /home/user/ 目录下生成 .ssh 文件夹
修改文件夹权限:
chmod 700 /home/user/.ssh
进入到目录下:
cd /home/user/.ssh
新建一个授权文件:
authorized_keys
修改授权文件权限:
chmod 600 authorized_keys
添加需要登录机器的key 到authorized_keys:
vim authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxxxx ...
保存退出就可以了
0 0
- linux 配置ssh 登录
- linux配置ssh免登录
- linux下简单SSH登录配置
- Unix/Linux ssh配置无密码登录
- linux 配置 SSH免密码登录
- Linux下配置SSH免密码登录
- 配置Linux服务器SSH远程密钥登录
- Linux系统 配置ssh无密码登录
- Xshell配置SSH密钥登录Linux服务器
- linux配置免密码ssh登录
- Linux SSH远程登录快速配置
- Linux配置SSH无密码登录
- linux配置SSH协议免登录密码
- Linux配置ssh免密登录
- Linux SSH免登录配置总结
- Linux配置 SSH无密码登录
- linux ssh无密码登录配置
- Linux配置ssh无密码登录
- Memcache和Memcached在Linux环境下的安装过程
- 使用TextureView setTransform(Matrix)方法,解决Camera显示变形问题
- 【Tisinsen1043】完美的代价(字符串+树状数组)
- CAN与CANOpen(四)
- Qt中的智能指针
- linux 配置ssh 登录
- mysql中GROUP BY结合GROUP_CONCAT的使用
- hdu 2732 Leapin' Lizards 【图论-网络流-最大流】
- 每日一练之Reverse Integer[LeetCode No.7]-翻转整数
- windows下用批处理设置设置环境变量 .
- http对接url传上传下载数据
- ubuntu下安装JDK7/JDK8
- .NET-list扩展方法Distinct去重
- 关于使用Volley下载的json字符串无法显示中文的问题(已解决)