Difference between revisions of "SSH Security Settings"
IVSWikiBlue (talk | contribs) |
IVSWikiBlue (talk | contribs) |
||
Line 1: | Line 1: | ||
# Connect to the server via SSH or access the shell on the console. | # Connect to the server via SSH or access the shell on the console. | ||
− | # Type | + | # Type in the following, and then press Enter: <pre>sudo nano /etc/ssh/sshd_conf</pre> |
# Scroll to the bottom of the file. | # Scroll to the bottom of the file. | ||
# Add the following lines: | # Add the following lines: | ||
− | + | <pre>Ciphers aes128-ctr,aes192-ctr,aes256-ctr | |
− | + | MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160</pre> | |
− | # | + | # Type '''CTRL-X''' and then press Enter to exit. |
# Enter '''Y''' to save changes. | # Enter '''Y''' to save changes. | ||
− | # Do not change the name of the file, and press | + | # Do not change the name of the file, and press Enter to save. |
− | # Type | + | # Type in the following, and then press Enter: <pre>sudo service ssh restart</pre> |
Revision as of 11:12, 24 April 2019
- Connect to the server via SSH or access the shell on the console.
- Type in the following, and then press Enter:
sudo nano /etc/ssh/sshd_conf
- Scroll to the bottom of the file.
- Add the following lines:
Ciphers aes128-ctr,aes192-ctr,aes256-ctr MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160
- Type CTRL-X and then press Enter to exit.
- Enter Y to save changes.
- Do not change the name of the file, and press Enter to save.
- Type in the following, and then press Enter:
sudo service ssh restart