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 18:58] – [SSH] hc9 | vps_-_ubuntu [2021/04/02 19:04] – [SSH] hc9 | ||
---|---|---|---|
Line 87: | Line 87: | ||
===== SSH ===== | ===== SSH ===== | ||
- | Install SSH. | + | * Install SSH. < |
- | + | </ | |
- | | + | |
- | + | ||
- | Edit ''/ | + | |
- | + | ||
- | <file config / | + | |
PermitRootLogin no | PermitRootLogin no | ||
</ | </ | ||
- | + | * Restart sshd. < | |
- | Restart sshd. | + | </ |
- | + | | |
- | | + | * 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. |
- | + | </ | |
- | 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 need to be able to connect from anywhere, allow 22 from anywhere. | + | |
- | + | ||
- | | + | |
==== Cleanup ==== | ==== Cleanup ==== | ||
vps_-_ubuntu.txt · Last modified: 2021/04/02 19:05 by hc9