继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Linux SSH登录设置步骤

慕运维2858188
关注TA
已关注
手记 123
粉丝 63
获赞 512
在服务器上制作密钥对
ssh-keygen
在服务器上安装密钥
cd .ssh
cat id_rsa.pub >> authorized_keys
设置正确的权限
chmod 600 authorized_keys
chmod 700 ~/.ssh
找开密钥功能,关闭密码登录
RSAAuthentication yes
PubkeyAuthentication yes
PermitRootLogin yes
PasswordAuthentication no
重启 sshd 服务使配置生效
service sshd restart
下载密钥使用密钥登录
 id_rsa
打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP