- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: public key authentication failing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
05-03-2006 11:15 PM
05-03-2006 11:15 PM
public key authentication failing
I am using public key authentication mechanism .
i am executing ssh-keygen.exe file in order to obtain the public and private keys .
if i am using default path i.e. c:\Docoment..\manojkumar\.ssh\id_rsa
only then public key authentication is working .
Problem ::
if i am using some other path e.g. "c:\key"
then it is creating public and private keys but algorithm is failing i.e. after copying the public keys on the server --password less -login is not there (it is asking for password)
Is it possible to obtain password-less-login without selecting default path .
regards,
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:22 AM
05-04-2006 02:22 AM
Re: public key authentication failing
On a UNIX system, you would execute
ssh -i ${abs_path_to_private_key} -l ${user} ${host}
The help file for the ssh client you're using should be able to point you to whatever cli option or menu pick you need to do the same thing.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:27 AM
05-04-2006 02:27 AM
Re: public key authentication failing
Thanks for a quick response---
i m working on windows-- can't execute unix commands or scripts .
one more thing--- .ssh folder is a requirement or not .
regards,
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:29 AM
05-04-2006 02:29 AM
Re: public key authentication failing
It's a requirement on the HP-UX side.
It's where the key is stored.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:31 AM
05-04-2006 02:31 AM
Re: public key authentication failing
can we store the keys in some other folder
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:31 AM
05-04-2006 02:31 AM
Re: public key authentication failing
.ssh folder is a requirement on Linux.
I've seen windows create something similar created on Windows
You should be able to find the ssh binary on windows and run the diagnostic in the previous post.
Also -vvv might be helpful to get diagnostics.
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
05-04-2006 02:37 AM
05-04-2006 02:37 AM
Re: public key authentication failing
it is possible to create the keys in some other folder but again in order to obtain a password-less-login , i have to paste the private key i.e. id_rsa into the "$HOME\.ssh" folder- then only it 'll work .
I think it is because of $HOME path----
I just want to get rid of this $HOME path - Is it possible ??????
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:44 AM
05-04-2006 02:44 AM
Re: public key authentication failing
You have two options:
1) Change the home dir in your /etc/passwd entry
2) Specifically set a "new" $HOME in your $HOME/.profile file
Your $HOME is "assumed" to be what's in your passwd entry
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:48 AM
05-04-2006 02:48 AM
Re: public key authentication failing
actually i am working on windows platform--
I can change the environment variables --but that is last option .
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:51 AM
05-04-2006 02:51 AM
Re: public key authentication failing
You know you're in the HP-UX section I assume.
Tell us just *what* the client & server are.
That will help us help you.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 02:55 AM
05-04-2006 02:55 AM
Re: public key authentication failing
what i m doing is ---
i am executing ssh-keygen.exe and copying the public keys on to the server (authorized_keys) using pscp/scp---
it is working fine-----
but i want to get rid of .ssh folder and $HOME path-----
manoj