Skip to content

Instantly share code, notes, and snippets.

@vardumper
Created May 11, 2023 08:49
Show Gist options
  • Save vardumper/737e7857502635614f0cf1133d02849a to your computer and use it in GitHub Desktop.
Save vardumper/737e7857502635614f0cf1133d02849a to your computer and use it in GitHub Desktop.
~/.ssh/config Example connecting via IPv6
Host my-server
HostName 9x99:9x9:x99:x9x9::1 # placeholder, replace with your servers IPv6
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
ForwardX11 yes
Port 22 # verify port with sudo ss -tnlp | grep ssh
AddressFamily inet6
User root # placeholder, use real user eg: ubuntu
LogLevel DEBUG
# same thing in your CLI (set interface eth0/eth1)
ssh -6 root@9x99:9x9:x99:x9x9::1%eth1 -p 22 -i ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment