LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08:09 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
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, 08:17 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
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, 08:26 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

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

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

Original Poster
Blog Entries: 6

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, 09:51 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 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
Open Source Consulting | Domain Registration