- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh asked for password
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 11:37 AM
01-13-2006 11:37 AM
On the new server I ran
1) ssh-keygen -t dsa on the new server
2) copied the id_dsa.pub file into the authorized_keys file on both the new server and our "master" HP server
from the master HP server when I do an ssh to the new server it still prompts me for the new servers password.
What am I missing in the setup ???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 02:42 PM
01-13-2006 02:42 PM
SolutionFrom what you described above, the keypair was created on the new server and the public key was copied to the authorized keys on the new and master server... that would allow you to login from the new server to the new server or from the new to master server but not the other way around.
So if you need to use public key auth from the master to the new server you'll need to put a keypair on the master and append it's public key to the new server.
Also double check the syslog.log for sshd errors and use "ssh -vvv" to debug.
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2006 01:13 AM
01-14-2006 01:13 AM
Re: ssh asked for password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2006 07:45 AM
01-14-2006 07:45 AM
Re: ssh asked for password
authorized keys depends on a few things.
Ownership of the home directory. Someone else owns it, password prompt is automatic.
permission of the files in the .ssh direcotry. To permissive, automatic prompt for a password.
ownership and permissions of the .ssh directory.
If the new machine is giving you trouble.
1) rm -rf .ssh/
2) ssh-keygen -t dsa # solving ownerhip and permission issues.
3) Copy in the authorized keys file.
If you want things to work 2 way.
cat id_dsa.pub >> authorized_keys
distribute it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2006 01:05 PM
01-14-2006 01:05 PM
Re: ssh asked for password
If you've got a keypair on your "master" server that is used to connect to all of your other hosts, then no need to ssh-keygen. Just take the id_dsa.pub file on the master and append it to the new server authorized_keys file.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2006 01:10 PM
01-14-2006 01:10 PM
Re: ssh asked for password
Did you cut/paste the .pub key to the authorized keys? If that's how it was done you should try to recreate teh authorized_keys file on the new server. Instead of cut/paste, try to scp the .pub file over then cat id_dsa.pub >> authorized_keys.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2006 05:27 AM
01-15-2006 05:27 AM