Linux设置ssh(密钥)登录方式,关闭密码访问

写入公钥

mkdir ~/.ssh/ && vi ~/.ssh/authorized_keys

chown -R 0700 ~/.ssh && chown -R 0644 ~/.ssh/authorized_keys

配置ssh(密钥)登录

vi /etc/ssh/sshd_config

开启ssh(密钥)登录

StrictModes no

RSAAuthentication yes

PubkeyAuthentication yes

AuthorizedKeysFile .ssh/authorized_keys

关闭密码登录

PasswordAuthentication no

评论

Popular Posts

Nginx设置反向袋里

9个php开发者应该知道的PHP库

Win10和Win11家庭版开启远程桌面功能RDP

mihomo各平台客户端下载(windows, android, macos)

在金融行业工作的优势

乐播投屏TV版 8.2.04 - 夏普电视定制无广告版

日本前核电厂技师的泣血控诉

常用的国内外延迟测速链接(generate_204)

哈佛持续76年跟踪700人一生:什么样的人最幸福?

ungoogled-chromium浏览器各平台版本下载(windows, android, macos, linux)