Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh:fe80::0002 is an IP address, fc00::0002 is a hostname.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sat Nov 23, 2013 6:50 am    Post subject: ssh:fe80::0002 is an IP address, fc00::0002 is a hostname. Reply with quote

What sense does this make?

Code:
ssh -6 $client -p 65111 auser@fc00::0002%eth1
ssh: Could not resolve hostname fc00::0002%eth1: Name or service not known?

ssh -6 $client -p 65111 auser@fe80::0002%eth1
ssh: connect to host fe80::0002%eth1 port 65111: Network is unreachable


However --

Code:
ping6 -I eth1 fc00::0002
PING fc00::0002(fc00::2) from fc00::1 eth1: 56 data bytes
64 bytes from fc00::2: icmp_seq=1 ttl=64 time=0.570 ms
64 bytes from fc00::2: icmp_seq=2 ttl=64 time=0.122 ms

_________________
My blog
Back to top
View user's profile Send private message
Aiken
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 210
Location: Toowoomba/Australia

PostPosted: Sat Nov 23, 2013 7:27 am    Post subject: Reply with quote

I would be wondering what the variable $client is set to. I have just tried both

Code:

ssh james@fe80::21f:d0ff:fed6:d673%eth0
ping6 -I eth0 fe80::21f:d0ff:fed6:d673


and they both worked. For me whether I used -6 or not made no difference. Using -p to set the port a sshd was listening to made no difference.
_________________
Beware the grue.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sat Nov 23, 2013 10:28 am    Post subject: Reply with quote

It's fc00 which is problematic.

The prefix may be useful --

Code:
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 6100
        inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fc00::1  prefixlen 124  scopeid 0x0<global>
        ether 50:e5:49:d0:30:d2  txqueuelen 1000  (Ethernet)
        RX packets 16106750  bytes 9973238434 (9.2 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 20065341  bytes 6050738353 (5.6 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 1  collisions 0


$client is

-C -Y -c blowfish-cbc -i /abc.key -X
_________________
My blog
Back to top
View user's profile Send private message
Aiken
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 210
Location: Toowoomba/Australia

PostPosted: Sun Nov 24, 2013 6:41 am    Post subject: Reply with quote

Your fc00::1 address has a scope of global. From my own playing using %ethX after the address only works with scope link address and not global. The address above that worked for me is link. I added fc00:1 to eth0 as global and got the same message cannot resolve hostname message you got. Dropped the %eth0 and the ssh connects.
_________________
Beware the grue.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Mon Nov 25, 2013 8:57 am    Post subject: Reply with quote

Humm.

Yes, got it. Thanks.
_________________
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum