1833758 Members
2601 Online
110063 Solutions
New Discussion

Re: SSH configuration

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

SSH configuration

Well Im posting b/c I cant search the forums for some reason. The site doesnt return any results no matter what i type.



My question is I have Secure_Shell A.03.61.002 HP-UX Secure Shell.

My DBA is trying to access from one box to the other and cant keeps saying that he doesnt have login privileges to or from either box.

But while as root I can go back and forth with ssh . However, one way it requires me to enter the password.

I know there are posts I have read on these topics but I cant search the forum for some reason.
Unix, the other white meat.
8 REPLIES 8
RAC_1
Honored Contributor

Re: SSH configuration

Post the exact error message.
Also, how the ssh for the user has been set up?? I mean which way of authenticate??

Anil
There is no substitute to HARDWORK
Todd McDaniel_1
Honored Contributor

Re: SSH configuration

When he is trying to login on the other machine:

** You do NOT have login priviledges to this machine **

He can issue commands... like:

/usr/bin/ssh /usr/local/bin/sudo /usr/symcli64/bin/symdg list
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: SSH configuration

My other question is how do get it to NOT ask me for a password...

It does for me as root one direction, but not the other way.
Unix, the other white meat.
Sanjay_6
Honored Contributor

Re: SSH configuration

Hi Todd,

to allow a unix id to login through ssh across servers you need to generate keys with null passphrase. This link explains the situations where you might have a mix of multiple versions of SSH.

http://bumblebee.lcs.mit.edu/ssh2/

Hope this helps.

Regds

Craig Rants
Honored Contributor
Solution

Re: SSH configuration

Basically

as root on both boxes

ssh-keygen -t rsa (enter)
(enter)
(enter)

Put the id_rsa.pub files in the .ssh/authorized_keys file of the other root account

ssh once to the other box to accept the key.

You should be all set, of course this is a simplified process, but...

if you need more help let us know

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Todd McDaniel_1
Honored Contributor

Re: SSH configuration

Thanks guys between the 2 of you I got it...

Had to generate key on one box, already had on the other one.
Unix, the other white meat.
Craig Rants
Honored Contributor

Re: SSH configuration

Glad to know it works for you.

I love ssh, just becareful with your setup it is easy to get on the wrong box with a two way trust.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Todd McDaniel_1
Honored Contributor

Re: SSH configuration

closed
Unix, the other white meat.