SSH connection using a specific private key
$ ssh -i [key_file] [user]@[host]
- Command
- ssh
- Description
- Specify a private key file for authentication. Common for AWS EC2 instances.
- Deep Dive
- -i stands for Identity file. Ensure the key file permission is 600.