[SSH] Specify a private key file

Created on November 30, 2026

Use -i to choose an identity file for an SSH connection. This example connects to hostname as user using the private key at ~/.ssh/some_private_key.

ssh -i ~/.ssh/some_private_key user@hostname
Shell command