LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-18-2008, 09:09 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
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?
 
Old 09-18-2008, 09:17 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by your_shadow03 View Post
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.
 
Old 09-18-2008, 09:26 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Sorry for confusion in the words above.

I have already swapped the keys for each user.
 
Old 09-18-2008, 10:36 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I tested the same in between the two linux machine and it was working fine but in between linux and HP-UX machine
 
Old 09-18-2008, 10:51 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by your_shadow03 View Post
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.
 
  


Reply


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 without password shishirkotkar Linux - Networking 5 04-03-2008 02:14 AM
SSH without password ? thefountainhead100 Programming 3 03-11-2008 02:26 AM
ssh with no password steinz Linux - Security 19 09-26-2007 01:11 PM
need help with no password ssh and ssh-agent hedpe Linux - Networking 3 02-08-2007 09:49 PM
SSH without password Ephracis Linux - Security 4 02-25-2005 03:30 PM


All times are GMT -5. The time now is 08:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration