Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-14-2013, 08:05 AM   #1
Registered: Jun 2007
Posts: 61
Blog Entries: 1

Rep: Reputation: 0
Pass wordless ssh over IPv6


I want to enable passwordless ssh over IPv6 in dual stack (both IPv4 and IPv6 coexist) environment.

ssh-keygen by default using hostname from /etc/hosts file.

I have enabled IPv6 on my machine and able to self ssh with IPv6 ip.

[root@test ~]# ssh fe80::20c:29ff:fe18:687c%eth0
Address fe80::20c:29ff:fe18:687c%eth0 maps to test6, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
root@fe80::20c:29ff:fe18:687c%eth0's password:
Last login: Mon Jan 14 07:59:08 2013 from fe80::20c:29ff:fe18:687c%eth0
[root@test ~]#
However ssh is not working with host name,though my /etc/hosts has entries.

[root@test ~]# cat /etc/hosts
### beginning of base hosts configuration ### localhost
::1       localhost6.localdomain6 localhost6 test test
### end of base hosts configuration ### test4 test4
fe80::20c:29ff:fe18:687c test6 test6
Could anyone pls help me in this.
Old 01-14-2013, 06:43 PM   #2
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 3,313

Rep: Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818
I believe the problem is that you have conflicting IP numbers for the host.

It looks to me like both and fe80::20c:29ff:fe18:687c are for the same machine. I'm basing this on the fact are both test4 and test. Forward lookups would find the, but a reverse lookup will only find test as that is the first entry.

I think that forward and reverse lookups have to match. Now whether ssh recognizes multiple IP numbers and adds all of them to the known hosts entry I don't remember.
Old 01-15-2013, 04:01 AM   #3
Registered: Jun 2007
Posts: 61
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Yes both and fe80::20c:29ff:fe18:687c are same machine. I have no issues over Ipv4 for resolution. However with Ipv6 its not working though I have added it in /etc/hosts files.


ssh, ssh access using key, ssh-keygen

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to pass ALT over ssh connection DBabo Linux - Software 2 12-20-2010 02:39 PM
[SOLVED] ssh acces problem may be ipv6? ibaydan Linux - Networking 3 12-08-2010 01:25 PM
ssh without pass phrase. PoleStar Linux - Newbie 4 07-27-2010 03:08 PM
SSH and Ask-pass under gnome ctyler Linux - Security 1 11-24-2004 01:33 AM
Pass password with ssh command BruceC Linux - Newbie 2 05-12-2004 09:55 AM

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration