LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   ssh config Issue (http://www.linuxquestions.org/questions/linux-software-2/ssh-config-issue-589330/)

diogod28 10-04-2007 03:40 AM

ssh config Issue
 
Hi

I had successfully configured ssh between two servers for oracle RAC configuration and was working fine. It still works fine with one node. But when I try to run [ssh nodename date] from one of the node it does not work.

I tried reconfiguring, the same problem. I cannot copy the authorised_keys from one node only the other works fine.

Thanks for your help in advance

Diogo Fernandes.

matthewg42 10-04-2007 08:47 PM

Most ssh implementations have some way to print verbose information, for example stages of connections - what is tried, what is successful and what fails. For the openssh implementation of the ssh client which ships with many Linux distros, you can use the -v command line option to accomplish this. You can provide the option multiple times to get more verbose output. For example:
Code:

ssh -v -v nodename
See if you can get more information about that is happening that way.

tronayne 10-05-2007 06:45 AM

Quote:

I tried reconfiguring, the same problem. I cannot copy the authorised_keys from one node only the other works fine.
Did you by any chance copy the authorized_keys file from one machine to the other? If so, it ain't gonna work that way; you need to run ssh-keygen on each machine independently and copy only the id_dsa.pub file to the other machine's ~/.ssh/authorized_keys file -- so you don't get confused, try running ssh-keygen then rename id_dsa.pub to the node name of the machine you're on then copy that to the other machine's ~/.ssh directory (then add that file to authorized_keys; this is in case you have additional machines to add by name). Remember that the keys work in pairs; the id_dsa is the private key, the id_dsa.pub is the public key for each machine, not for both.

diogod28 10-07-2007 03:54 AM

Hi

We got the issue resolved it was the problem with the SUSE package AppArmour which was creating the problem. Now things are fine.

Thanks you all for your assistance

Regards

Diogo


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