Quicktip # Use alternate SSH port and private key to connect to a server
To connect to your VM via SSH custom port, and with a private key, use the below:
ssh -p 4123 -i /home/user/my-keypair1.pem admin@host.com
Use -p
for the custom SSH port (the default port is 22), and use -i /path/to/ssh-key
.