Skip to content
Ran

標籤: Linux

Linux – 使用 SSH 登入

Posted on 2017-08-08 | by Ran | Leave a Comment on Linux – 使用 SSH 登入
使用 puttygen 產生 4096 bits 的 public/private key
mkdir ~/.ssh
chmod 0700 ~/.ssh
touch ~/.ssh/authorized_keys
chmod 0644 ~/.ssh/authorized_keys
sudo vi ~/.ssh/authorized_keys
sudo vi /etc/ssh/sshd_config
[...]
PasswordAuthentication no
[...]
UsePAM no
[...]
systemctl restart sshd
| Tagged Linux, SSH

近期文章

  • Support unicode filename in Octobercms Media Manager
  • (無標題)
  • Laravel Local & Production
  • puppeteer – screenshot.js
  • List all variables inside a Laravel blade

分類

  • 未分類

標籤

403 Apache bridge CentOS docker formnovalidate host host.docker.internal HTML iFrame Javascript jQuery LAMP Laradock Laravel Linux MariaDB MySQL network-mode Nginx PATHINFO_BASENAME RWD SQL Server SSH Swap viewport windows YouTube Player API
© 2021 Ran