LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to ssh to HP-UX without password? (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-ssh-to-hp-ux-without-password-670812/)

your_shadow03 09-18-2008 08:09 AM

Unable to ssh to HP-UX without password?
 
I have two Boxes - HP and redhat Linux.I want to ssh as normal user to HP-UX machine from Linux Box without password.
I followed the following steps:

1. Created a key on redhat linux Machine through

#ssh-keygen -t dsa

2.#scp ~/.ssh/id_dsa.pub user@hp-ux:~user/.ssh/authorized_keys

I am able to ssh to hp machine through root user without password but not through user.

Please let me know if I am wrong at any point?

TB0ne 09-18-2008 08:17 AM

Quote:

Originally Posted by your_shadow03 (Post 3284473)
I have two Boxes - HP and redhat Linux.I want to ssh as normal user to HP-UX machine from Linux Box without password.
I followed the following steps:

1. Created a key on redhat linux Machine through

#ssh-keygen -t dsa

2.#scp ~/.ssh/id_dsa.pub user@hp-ux:~user/.ssh/authorized_keys

I am able to ssh to hp machine through root user without password but not through user.

Please let me know if I am wrong at any point?


Your title says you're unable to, but your post says you ARE able to. Which is it?

If you're saying that you can SSH without a password as a root user, but can't as a 'regular' user, that would be correct. You've only swapped the keys for the root user above. You need to do this for every user you want to be able to do passwordless-logins with.

your_shadow03 09-18-2008 08:26 AM

Sorry for confusion in the words above.

I have already swapped the keys for each user.

your_shadow03 09-18-2008 09:36 AM

I tested the same in between the two linux machine and it was working fine but in between linux and HP-UX machine

TB0ne 09-18-2008 09:51 AM

Quote:

Originally Posted by your_shadow03 (Post 3284591)
I tested the same in between the two linux machine and it was working fine but in between linux and HP-UX machine

But in between linux and HP-UX machine what? It was or wasn't working?

If this works between Linux systems, but just not to HP-UX, it may be the SSH you're using on HP-UX. Solaris used to be the same way, you could connect via SSH, but keyswaps didn't work. You had to remove the 'built-in' SSH server, and install OpenSSH, which worked flawlessly.

Are you using OpenSSH on HP-UX, or the default SSH that comes with it? You can try to install OpenSSH, and see if that works, chances are it will.


All times are GMT -5. The time now is 02:12 PM.