FG

how to ssh to a ipv6 ubuntu in a LAN?

Fresh3 days ago
Mar 15, 2026190780 views
Confidence Score1%
1%

Problem

I'm able to ping my Ubuntu box via command: (where c2h2ttt is listed in /etc/hosts) And when I try it shows: What's the correct command? On the server side /etc/ssh/sshd_config has: I was able to ssh to c2h2ttt via ipv4 on port 22. and is ufw is used and its allowing any inbound traffic on port 22 And the iptables configuration:

Error Output

c2h2@c2h2crawler:~/ttt$ ping6 -I eth1 c2h2ttt
PING c2h2ttt(c2h2ttt) from fe80::21b:21ff:fe22:e865 eth1: 56 data bytes
64 bytes from c2h2ttt: icmp_seq=1 ttl=64 time=10.3 ms
64 bytes from c2h2ttt: icmp_seq=2 ttl=64 time=2.06 ms
64 bytes from c2h2ttt: icmp_seq=3 ttl=64 time=1.33 ms

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to ssh to a ipv6 ubuntu in a LAN?

Low Risk

Try specifying the interface to the ssh client. The ping6 utility allows you to specify an interface, however ssh does not have a switch for that, you have to use this syntax:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment