Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
Is the following configuration sufficient for SSH?
Code:
Port Number
ListenAddress IP
PermitRootLogin no
StrictModes yes
MaxAuthTries 3
MaxSessions 2
IgnoreRhosts yes
PermitEmptyPasswords no
KbdInteractiveAuthentication no
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
PrintMotd no
PermitUserEnvironment no
Compression delayed
Protocol 2
UsePrivilegeSeparation yes
Changing the port number won't make much of a difference. However, turning off password authentication by setting "PasswordAuthentication no" in the configuration. Make sure that you can log in with either SSH keys or SSH certificates first though.
If you are really pushing the limits, then you might trim away shorter moduli.
Changing the port number won't make much of a difference. However, turning off password authentication by setting "PasswordAuthentication no" in the configuration. Make sure that you can log in with either SSH keys or SSH certificates first though.
If you are really pushing the limits, then you might trim away shorter moduli.
It's a very short AWK script and is shorthand for if the fifth column is greater than or equal to 3071 the print out the whole line. See: https://www.grymoire.com/Unix/Awk.html
Quote:
Originally Posted by Jason.nix
Should I add the following lines to the sshd_config file?
Only if it is clear to you what each of the new settings do and what the effects will be. Study each one in 'man sshd_config'
You won't be able to protect your system (anything) if you don't understand what you're doing. You should check all advice, you never know which is reliable and which is not.
It is not against any LQ member or poster, just in general [not on LQ]. If you are not sure, the result is likely to be unpredictable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.