Download your favorite Linux distribution at LQ ISO.
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 03-07-2010, 01:55 AM   #1
Registered: Dec 2009
Posts: 200

Rep: Reputation: 15
ssh-keygen issue

dear sir,

we need guideline step by step, due to lack of knowledge we cant achive this task

1) we have 2 machines 1 is RHAS4U3 from where we need to bring data to remote machine which has RHEL5U4 5.4
2) now on original first machine RHAS4U3, we generate key command using RHAS4U3 "ssh-keygen" it create 2 files and id_rsa. now we transfer file to remote machine and make contents of public file to authorized_keys
3) so when we try to connect it does not work, we need your help where and what we are missing we have done 100% confirm steps

next, we test other scenerio between two test machines of RHEL5.4 they are working fine, but between RHAS4U3 and RHEL5.4 does not work

suggest advise how to trouble shoot, how to sort the matter, where to see logs, any special commands/parameters to achive this. i create even dsa rsa both type keys still fail.

waiting your suggestion guideline tutrials

Old 03-07-2010, 03:44 AM   #2
Registered: May 2001
Posts: 29,359
Blog Entries: 55

Rep: Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546
Originally Posted by salimshahzad View Post
when we try to connect it does not work
- On the server-side check the clients ~/.ssh directory and files for the right permissions (see 'man ssh' the FILES section).
- On the client using ssh in debug mode adding triple "v"s like "ssh -v -v -v user@host" could should clues.
- Server-side check /var/log/secure as the sshd by default logs there. Can't hurt to check /var/log/messages while you're at it.
- On the server-side starting sshs in debug mode (on another port or else you lose access: ensure the firewall on both sides does not block traffic to that port) adding triple "d"s like "sshd -d -d -d -e > /tmp/sshd_debug.log 2>&1" could should clues.

Please post (preferably in BB code) or attach logs.


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
ssh-keygen and path issue pgte3 Other *NIX 2 01-29-2009 07:03 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
need help automating ssh-keygen linxq4u Linux - General 1 08-25-2007 11:13 AM
How to ssh-keygen? Baran Linux - Networking 5 04-26-2005 02:40 PM
ssh-keygen problem mijohnst Linux - Networking 5 07-20-2004 01:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:58 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