LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-14-2013, 07:05 AM   #1
skimeer
Member
 
Registered: Jun 2007
Posts: 55
Blog Entries: 1

Rep: Reputation: 0
Pass wordless ssh over IPv6


Hello,

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.

Code:
[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.

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

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

It looks to me like both 10.55.199.113 and fe80::20c:29ff:fe18:687c are for the same machine. I'm basing this on the fact 10.55.199.113 are both test4 and test. Forward lookups would find the 10.55.199.113, 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, 03:01 AM   #3
skimeer
Member
 
Registered: Jun 2007
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Yes both 10.55.199.113 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.
 
  


Reply

Tags
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 01:39 PM
[SOLVED] ssh acces problem may be ipv6? ibaydan Linux - Networking 3 12-08-2010 12:25 PM
ssh without pass phrase. PoleStar Linux - Newbie 4 07-27-2010 02:08 PM
SSH and Ask-pass under gnome ctyler Linux - Security 1 11-24-2004 12:33 AM
Pass password with ssh command BruceC Linux - Newbie 2 05-12-2004 08:55 AM


All times are GMT -5. The time now is 03:32 AM.

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