Created
May 11, 2023 08:49
-
-
Save vardumper/737e7857502635614f0cf1133d02849a to your computer and use it in GitHub Desktop.
~/.ssh/config Example connecting via IPv6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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