Skip to content

Instantly share code, notes, and snippets.

@valorad
Last active November 6, 2022 23:07
Show Gist options
  • Save valorad/b85dfc9db32ee9f5031df4f34bbdf468 to your computer and use it in GitHub Desktop.
Save valorad/b85dfc9db32ee9f5031df4f34bbdf468 to your computer and use it in GitHub Desktop.
SSH Config Examples
# Linux: /home/me/.ssh/config
# macOS: /Users/me/.ssh/config
# Windows: C:\Users\me\.ssh\config
# macOS - localhost - fish shell
HOST localhost
Hostname localhost
User me
Port 22
IdentityFile /Users/me/.ssh/id_ed25519
RequestTTY yes
RemoteCommand /usr/local/bin/fish -l
# Windows - localhost - powershell
HOST localhost
Hostname localhost
User valorad
Port 22
IdentityFile C:\Users\valorad\.ssh\id_ed25519
RequestTTY yes
RemoteCommand powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment