You are viewing a single comment's thread from:

RE: How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!

in #sysadmin7 years ago

Nice tutorial. I can add the following points:

  • U can use ssh-copy-id to install authorized keys easily
  • For public servers u might want to change the default sshd port (e.g. 2222). Otherwise u might get lots of connection tries and big log files.

Thanks. J

Sort:  

Old habits die hard :) Especially since most are going from Windows->Linux

I didn't want to get into much detail on changing ports and fail2ban as it is a bit more work. Most users who change ports with fail2ban fail to properly configure it for the new port and it just sits there protecting a port not even being used.