- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Problem With Gentoo Keychain and SSH
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
03-21-2003 10:22 AM
03-21-2003 10:22 AM
Problem With Gentoo Keychain and SSH
The keys that were created on the Linux server was copied to the .ssh subdirectory under the appropriate user's home directory on the HP-UX machine. Their names are:
authorized_keys
authorized_keys2
id_dsa
id_dsa.pub
identity
identity2
The problem is the following: The entire login process is supposed to be automated. However, every time the user account logs in, it is prompted for the password. What configuration change must I do to have the login process completely automated?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-21-2003 11:11 AM
03-21-2003 11:11 AM
Re: Problem With Gentoo Keychain and SSH
Attached is a cookbook to help.
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
- Email to a Friend
- Report Inappropriate Content
03-21-2003 11:18 AM
03-21-2003 11:18 AM
Re: Problem With Gentoo Keychain and SSH
Check this link:
http://hacks.oreilly.com/pub/h/66
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-21-2003 11:41 AM
03-21-2003 11:41 AM
Re: Problem With Gentoo Keychain and SSH
I ran through the procedure that you sent me, but unfortunately I was still prompted for a password from both the linux server and the hp-ux box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-21-2003 12:12 PM
03-21-2003 12:12 PM
Re: Problem With Gentoo Keychain and SSH
there are two things here - one is the login password, the other is pass-phrase for your key. Create a key without pass-phrase if you want a totally automated login procedure.
You can also use ssh-agent which provides greater flexibility. See man page for more info.
HTH,
Goran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-21-2003 01:10 PM
03-21-2003 01:10 PM
Re: Problem With Gentoo Keychain and SSH
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-21-2003 01:15 PM
03-21-2003 01:15 PM
Re: Problem With Gentoo Keychain and SSH
Thanks for your e-mail. I checked the permission settings on the user's home directory as well as the .ssh directory. Everything matches up ac-cording to your instructions. I'm not sure why this isn't working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-27-2003 05:35 AM
03-27-2003 05:35 AM
Re: Problem With Gentoo Keychain and SSH
I am by no means an expert in this area but I outline my "solution" to the problem you describe - assuming you haven't solved it since your last message.
I have had a very similar
problem using Keychain 2.0.2 running on Red Hat Linux 8.0; following each of the steps you have outlined, and those described by Chris (re directory permissions). My links are between three linux PCs.
I have managed to perform the passwordless connections to each machine. After much searching WWW, I came across some instructions by Dennis Gallard at http://oceanpark.com/notes/howto_ssh_keychain_public_key_authentication_forwarding.html.
In particular I followed the instructions for modifying the ssh_config and sshd_config files. I then initiated keychain and used ssh-add to add my keys. Ensured that the authorised_keys/2 files were the same on each box. Once this was completed I found that I had the sought after "passwordless" connections.
But - there has to be one -:
I find that each time I start a new xterm window I have source the ~/.keychain/*-sh file.
I also note that on one of my linux boxes each time I re-login, keychain or "some process" initiates a new ssh-agent but the file ~/.keychain/*-sh is not updated.
I find that keychain does not stop all ssh-agent process nor does it delete all the files of the form /tmp/ss-XX??????/agent.PID
I have not yet tried running ssh from a cron job. I need to connect automatically to each machine for data transfers - for security reasons the machines are not cross-mounted - so scp was deemed better than ftp.
Hope this makes sense and is of assistance to you.
Regards,
Andrew K Mirza
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-03-2003 06:43 AM
04-03-2003 06:43 AM
Re: Problem With Gentoo Keychain and SSH
I looked at the attached text and got the gist of the help. But the text did not work as written.
Here are things that kept it from working:
I am a user on box A, trying to get to box B.
step 0. I verify box A and box B have their name's resolved properly. In my case, box B did not recognize the Box A's hostname. (and visa-versa).
1. I make id_dsa.pub. How?
/opt/ssh/bin/ssh-keygen -t dsa
2. I mess around with the user's directory on box B.
B User's home directory: rwx r-x r-x.
B User's ssh directory: rwx --- ---.
3. APPEND A user's id_dsa.pub text into B user's .ssh/authorized_keys2.
B User's .ssh/authorized_keys2 r-- --- ---.
4. NOW... I try it.
from A> ssh -2 user@B
I get a request for a pass phrase instead of a password.
For me, the thing that kept it dying was the permissions on the user's home directory. But (ssh -vvv) didn't tell me that. EXPERIMENTATION found it.
hope this helps.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-15-2003 11:38 AM
04-15-2003 11:38 AM
Re: Problem With Gentoo Keychain and SSH
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP