In these instructions below what appears on my terminal is different so not sure what I should change. After port 22 mine says #AddressFamily any and further down for protocol it has longer line saying #activation of protocol 1 then on line below uncommented Protocol 2.Also if you disable direct root login do you use sudo instead with same password you created for root?Scroll down to the section of the file that looks like this:#Port 22#Protocol 2, 1#ListenAddress 0.0.0.0#ListenAddress ::Uncomment and change #Port 22 to look like Port 5678 (choose your own 4 to 5 digit port number (49151 is the highest port number AND do not use 5678  lol )Uncomment and change #Protocol 2, 1to look like Protocol 2Uncomment and change #ListenAddress 0.0.0.0to look like ListenAddress 123.123.123.15 (use one of your own IP Addresses that has been assigned to your server)Note 1: If you would like to disable direct Root Login, scroll down until you find #PermitRootLogin yesand uncomment it and make it look like PermitRootLogin nowhereas mine is this:#Port 22#AddressFamily any#ListenAddress 0.0.0.0#ListenAddress ::# Disable legacy (protocol version 1) support in the server for new# installations. In future the default will change to require explicit# activation of protocol 1Protocol 2argh you have to do an online course just to work this forum :/
securing SSH and disabling direct root
ssh;security;configuration