This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
computing:ssh [2018/11/07 01:06] – oemb1905 | computing:ssh [2019/03/25 04:35] – oemb1905 | ||
---|---|---|---|
Line 31: | Line 31: | ||
chmod 700 ~/ | chmod 700 ~/ | ||
chmod 644 ~/ | chmod 644 ~/ | ||
- | chmod 600 ~/.ssh/id_rsahttps:// | + | chmod 600 ~/.ssh/id_rsa |
chmod 755 ~/ | chmod 755 ~/ | ||
Line 39: | Line 39: | ||
| | ||
config options for / | config options for / | ||
+ | |||
+ | Port 53535 | ||
+ | PubkeyAuthentication yes | ||
+ | PasswordAuthentication no | ||
+ | PermitRootLogin prohibit-password | ||
Protocol 2 | Protocol 2 | ||
- | AllowUsers | + | AllowUsers |
- | | + | |
+ | PermitEmptyPasswords | ||
+ | X11Forwarding yes | ||
+ | PrintMotd yes | ||
+ | ChallengeResponseAuthentication no | ||
+ | |||
+ | Then, always restart the service | ||
| | ||
sudo systemctl restart sshd.service | sudo systemctl restart sshd.service | ||
| | ||
- | Enable Firewall | ||
- | |||
- | https:// | ||
- | |||
- | https:// | ||
- | |||
- | https:// | ||
- | |||
- | https:// | ||
- | |||
- | https:// | ||
- | https:// | ||
--- // | --- // | ||