0

I am trying to ssh with Mac OS X (10.10.1 Yosemite) terminal using ipv6. If I use command like

ssh username@ipv6_address

It's not working and I am getting error "No Route to Host". But If I use command like (with %en0)

ssh username@ipv6_address%en0

It's working and I am able to SSH with ipv6 address..

Can you please guide me what's the reason of not working without %en0?

Thanks.

  • Which IPv6 addresses are you using. Having to specify the interface is only necessary when using link-local addresses (those starting with fe80:). Those are not routable and not very convenient to use. You'll want to get routable IPv6 addresses (from an ISP, a tunnel provider or ULA) when using IPv6. – Sander Steffann Nov 20 '14 at 6:53
  • @SanderSteffann Yes, It's starting with fe80. Means to connect with local need to specify interface? – Temp Nov 20 '14 at 7:00
  • Yes. I'll put this into an answer – Sander Steffann Nov 20 '14 at 10:39
  • 1
2

When you want to connect to an unroutable address like link-local you need to specify the interface. This is because for unroutable addresses your system can't determine the outgoing interface by looking at the routing table.

Unroutable destinations include link-local addresses (fe80::) and link-local multicast (ff02::) and more.

  • Thanks for the reply. For routable ipv6 address, I can get from ISP, correct? or need any changes in network configuration? – Temp Nov 20 '14 at 12:15
  • From your ISP, or for internal use (not to connect to the internet) you can generate your own ULA addresses. – Sander Steffann Nov 20 '14 at 18:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .