vps_-_ubuntu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
vps_-_ubuntu [2021/04/02 19:02] – [SSH] hc9 | vps_-_ubuntu [2021/04/02 19:04] – [SSH] hc9 | ||
---|---|---|---|
Line 92: | Line 92: | ||
PermitRootLogin no | PermitRootLogin no | ||
</ | </ | ||
- | * Restart sshd. <CODE> sudo systemctl restart sshd | + | * Restart sshd. <code> sudo systemctl restart sshd |
</ | </ | ||
* Create a firewall rule to allow ssh connections. | * Create a firewall rule to allow ssh connections. | ||
* If you'll always be connecting from the same ip (eg. your home computer) you can create explicit rules to only allow that ip to connect. However, note that most ISPs do not assign static IPs, so if yours changes you'll need to log into the console and update your firewall. < | * If you'll always be connecting from the same ip (eg. your home computer) you can create explicit rules to only allow that ip to connect. However, note that most ISPs do not assign static IPs, so if yours changes you'll need to log into the console and update your firewall. < | ||
</ | </ | ||
- | | + | |
</ | </ | ||
==== Cleanup ==== | ==== Cleanup ==== |
vps_-_ubuntu.txt · Last modified: 2021/04/02 19:05 by hc9