vps_-_ubuntu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vps_-_ubuntu [2021/04/02 18:58] – [SSH] hc9 | vps_-_ubuntu [2021/04/02 19:05] (current) – [Cleanup] 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 ==== | ||
Line 127: | Line 117: | ||
You may have noticed that on login, your MOTD contains a lot of information, | You may have noticed that on login, your MOTD contains a lot of information, | ||
- | | + | <file config / |
+ | ENABLED=0 | ||
+ | </ | ||
You can take this further and move or delete the files found in ''/ | You can take this further and move or delete the files found in ''/ |
vps_-_ubuntu.1617389921.txt.gz · Last modified: 2021/04/02 18:58 by hc9