LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 12-01-2007, 01:18 AM   #1
maooah
Member
 
Registered: Dec 2007
Posts: 44

Rep: Reputation: 15
ssh prompting password


hi,

i have Advance Server 3 install on two server and i would like to configre ssh between these servers, i generated the keys and ftp authorized_keys file from node1 to node2 , even though it is prompting to enter password,

Regards
 
Old 12-02-2007, 12:13 AM   #2
maooah
Member
 
Registered: Dec 2007
Posts: 44

Original Poster
Rep: Reputation: 15
Hi
i solve this issue by changing the permissions of authorized_keys file to 600 on node2 but
it displaying warning message

warning: no xauth data; using fake identification data for X11 forwaring

waiting for any input to avoid this error message also
Regards
 
Old 12-03-2007, 10:15 AM   #3
y2kram
LQ Newbie
 
Registered: Jul 2006
Posts: 11

Rep: Reputation: 0
Step 1 - Generate the key-pair using "ssh-keygen" as the user you want to use to ssh between hosts

Step 2 - look in <user_home>/.ssh - copy the contents of the ".pub" key into the remote hosts <user_home>/.ssh/authorized_keys2 file

Step 3 - Repeat for the other host if you want 2 way ssh

When rebuilding systems and keeping the same host name and IP, you will also have to remove that host entry from the <user_home>/.ssh/known_hosts file as well. You should be able to ssh between the 2 hosts without a passwords.
 
Old 12-04-2007, 02:20 AM   #4
maooah
Member
 
Registered: Dec 2007
Posts: 44

Original Poster
Rep: Reputation: 15
Hi y2kram

i already performed step 1 - step 3 and without password i could able to ssh to node2 .this is the sequence of the warning message

rac1>$ ssh rac2 date
warning: no xauth data; using fake identification data for X11 forwaring
rac2>$Tue Dec 4 11:26:04 SAUST 2007

could you explain this point:
"When rebuilding systems and keeping the same host name and IP, you will also have to remove that host entry from the <user_home>/.ssh/known_hosts file as well. You should be able to ssh between the 2 hosts without a passwords."

REgards
 
Old 12-05-2007, 08:42 AM   #5
y2kram
LQ Newbie
 
Registered: Jul 2006
Posts: 11

Rep: Reputation: 0
Have you looked at the debug info using -vv?
# ssh -vv rac2 date

You can also take a look at
http://rocketcalc.com/bread.php?key=22

Last edited by y2kram; 12-05-2007 at 08:51 AM.
 
  


Reply



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
pam_wheel still started prompting for su password again sixerjman Linux - Software 0 09-20-2006 12:04 PM
ssh not prompting for password and thus not working quarry_06 Linux - Networking 2 12-14-2005 03:17 PM
Ssh without prompting for a password deqmacrom Linux - General 2 04-21-2005 02:13 AM
Prompting for a password with pppoe fcnewbie Mandriva 0 06-15-2004 01:36 PM
frequent password prompting jwhiz Linux - Newbie 3 12-27-2003 05:03 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration