Skip to content

Instantly share code, notes, and snippets.

@akagaeng
Last active June 14, 2021 02:43
Show Gist options
  • Save akagaeng/4fbb1dc7c6aa7f7d1c651317ecdd59e5 to your computer and use it in GitHub Desktop.
Save akagaeng/4fbb1dc7c6aa7f7d1c651317ecdd59e5 to your computer and use it in GitHub Desktop.
Setup SSH alias (~/.ssh/config)

Open config file

vi ~/.ssh/config

Edit config file

Host your_host
HostName x.x.x.x
User user
IdentityFile ~/.ssh/xxx.pem
IdentitiesOnly yes
Port 22

Access using alias

ssh your_host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment