ubuntu:ssh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:ssh [2019/12/04 21:19] – peter | ubuntu:ssh [2023/06/09 16:04] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== SSH ====== | ====== SSH ====== | ||
- | [[SSH: | + | ===== OpenSSH ===== |
- | [[SSH: | + | OpenSSH is the implementation of the SSH protocol on Ubuntu. |
- | [[SSH:Configure sshd|Configure sshd]] | + | * OpenSSH is recommended for remote login, making backups, remote file transfer via scp or sftp, and much more. |
+ | * SSH is perfect to keep confidentiality and integrity for data exchanged between two networks and systems. | ||
- | [[SSH: | + | However, the main advantage is server |
- | [[SSH: | + | Here are a few things you need to tweak in order to improve OpenSSH server security. |
- | [[SSH:Disabling sshd|Disabling sshd]] | + | <WRAP important> |
+ | **IMPORTANT: | ||
- | [[SSH: | + | <code bash> |
+ | sudo cp / | ||
+ | </ | ||
- | [[SSH:Get the host's fingerprint|Get the host's fingerprint]] | + | ...and |
- | [[SSH: | + | <code bash> |
- | + | sudo chmod a-w / | |
- | [[SSH:Limit user logins|Limit user logins]] | + | </ |
- | + | </ | |
- | [[SSH: | + | |
- | + | ||
- | [[SSH: | + | |
- | + | ||
- | [[SSH: | + | |
- | + | ||
- | [[SSH:Setup SSH Keys|Setup SSH Keys]] | + | |
- | + | ||
- | [[SSH:Test mode|Test mode]] | + | |
- | [[SSH:Troubleshooting SSH|Troubleshooting SSH]] | + | <WRAP info> |
+ | **NOTE**: Not all of the possible changes mentioned below have to be made. | ||
+ | Some changes are not recommended to be made but may offer tighter security depending on your requirements. | ||
+ | </ | ||
---- | ---- | ||
[[Ubuntu: | [[Ubuntu: | ||
+ | |||
+ | [[Ubuntu: | ||
[[Ubuntu: | [[Ubuntu: | ||
Line 45: | Line 45: | ||
[[Ubuntu: | [[Ubuntu: | ||
+ | |||
+ | [[Ubuntu: | ||
[[Ubuntu: | [[Ubuntu: | ||
[[Ubuntu: | [[Ubuntu: | ||
+ | |||
+ | [[Ubuntu: | ||
[[Ubuntu: | [[Ubuntu: | ||
Line 59: | Line 63: | ||
[[Ubuntu: | [[Ubuntu: | ||
+ | |||
+ | [[Ubuntu: | ||
[[Ubuntu: | [[Ubuntu: | ||
[[Ubuntu: | [[Ubuntu: | ||
+ | |||
+ | [[Ubuntu: | ||
[[Ubuntu: | [[Ubuntu: | ||
Line 68: | Line 76: | ||
[[Ubuntu: | [[Ubuntu: | ||
- | + | [[Ubuntu:SSH:Two-Factor Authentication (using Google Authenticator)|Two-Factor Authentication (using Google Authenticator)]] | |
- | ---- | + | |
- | + | ||
- | ===== OpenSSH ===== | + | |
- | + | ||
- | OpenSSH is the implementation of the SSH protocol on Ubuntu. | + | |
- | + | ||
- | OpenSSH is recommended for remote login, making backups, remote file transfer via scp or sftp, and much more. SSH is perfect to keep confidentiality and integrity for data exchanged between two networks and systems. | + | |
- | + | ||
- | However, the main advantage is server authentication, | + | |
- | + | ||
- | Here are a few things you need to tweak in order to improve OpenSSH server security: | + | |
- | + | ||
- | Before making any modifications to the **/ | + | |
- | + | ||
- | <code bash> | + | |
- | sudo cp / | + | |
- | </ | + | |
- | + | ||
- | ...and | + | |
- | + | ||
- | <code bash> | + | |
- | sudo chmod a-w / | + | |
- | </ | + | |
- | + | ||
- | **NOTE**: Not all of the possible changes mentioned below have to be made. Some changes are not recommended to be made but may offer tighter security depending on your requirements. | + | |
ubuntu/ssh.1575494341.txt.gz · Last modified: 2020/07/15 09:30 (external edit)