SSH Tips and Tricks
-
Linux
OpenSSH
SSH
Overview
Logging In
- And, if needed, we can specify a different port
- AWS Loggin In
NOTE! You may need to set permissions on the .pem
file so only the owner can read/write/execute it.
If you don’t aware of how to set/change Permission Check this guide
SSH Config
- If you’re anything like me, you probably log in and out of a half dozen remote servers (or these days, local virtual machines) on a daily basis.
- And if you’re even more like me, you have trouble remembering all of the various usernames, remote addresses and command line options for things like specifying a non-standard connection port.
- Here’s something really powerful.
Let’s cover the options used above:
HostName
- The server host (domain or ipaddress)Port
- The port to use when connectingUser
- The username to log in withIdentityFile
- The SSH key identity to use to log in with, if using SSH key accessIdentitiesOnly
-Yes
to specify only attempting to log in via SSH keyPubkeyAuthentication
-No
to specify you wish to bypass attempting SSH key authentication
Let’s Loggin In
- No need to remember Username/IdentityFile/Port etc
Newsletter
Get updated when I create new content.
Unsubscribe whenever. Never any spam.