SSH Security
1 minute read •
Create another user
# switch to dev user
# switch to root user
Disable remote root login
# find the line that says "PermitRootLogin" and set it to no. And save it.
# Restart ssh service to reload the config
Securing using SSH Keys
# on the client machine
# using a newer algorithm
# using rsa
# transfer the public key to the server securely
# or, if you've provided custom keypair name, you have to provide the entire path of the key file.
Disable Password Authentication
WARNING! BEFORE PROCEEDING MAKE SURE YOUR SSH KEYS BASED AUTHENTICATION IS WORKING PROPERLY. OTHERWISE DO NOT PROCEED. YOU MAY LOOSE ACCESS TO THE SERVER!
# Find the line "PasswordAuthentication" and set it to "no". And save it