- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh- public key authentication
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
03-02-2006 03:42 AM
03-02-2006 03:42 AM
ssh- public key authentication
I was trying public key authentication .
Client is a window' machine .
Server is a linux system .
From my window' machine(Client), i can easily execute the commands present on the server by using ssh root@ipAddr, but everytime i m supposed to provide the password .
I tried the mechanism for public key authentication but it is not working .
here, i am writing the commands one by one---
(Client machine)
1. c:\>ssh-keygen -t rsa
2. empty for filename-(default)
3. empty for passphrase key
4. pscp to copy the id_rsa to /.ssh/authorozed_keys
that' all from my side
regards,
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 04:10 AM
03-02-2006 04:10 AM
Re: ssh- public key authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 04:27 AM
03-02-2006 04:27 AM
Re: ssh- public key authentication
The file generated should be brought over to the server where the user is going to login
under the user's home directory
under .ssh directory
file name should be authorized_keys.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 02:08 PM
03-02-2006 02:08 PM
Re: ssh- public key authentication
actually, i m using pscp to copy the file id_rsa from my window' machine to the server(linux machine) and then i m redirecting the file id_rsa on the server to /.ssh/authorized_keys by using-
cat id_rsa.pub >> /.ssh/authorized_keys .
After this i m changing the permissions-
i.e. chmod 600 /.ssh/authorized_keys
That' what i m doing .
I m not able to locate the problem .
regards,
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 02:32 PM
03-02-2006 02:32 PM
Re: ssh- public key authentication
I am using this methord and works well for me. Let me know if you need more details in downloading the software and generating the key pair.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 02:54 PM
03-02-2006 02:54 PM
Re: ssh- public key authentication
If is between windows and unix, putty is a better tool to use.
To understand clearily about SSH public key authentication between two nodes, refer this attached doc.
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 03:06 PM
03-02-2006 03:06 PM
Re: ssh- public key authentication
Now, it is working for me---
When i am entering as a root user- it is not asking for a password .
Just want to know one more thing- in the root directory --we have one more directory (commands)- in this directory some commands are present .
In order to execute the comaands , we are supposed to provide the password .
we can directly enter in that directory by using ssh commands@ipAddr -- and after providing the password , we can easily execute the commands .
Due to Public Key Authentication, it is not asking for password when i m entering as a root user---but it is asking for a password in case of some other directory .--
What i want to know is --can we apply the same logic to this directory also .
What formalities i m supposed to do in order to get a password -less login .
regards,
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 03:15 PM
03-02-2006 03:15 PM
Re: ssh- public key authentication
Check these links for more information,
http://cfm.gs.washington.edu/security/ssh/client-pkauth/
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=996527
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 03:34 PM
03-02-2006 03:34 PM
Re: ssh- public key authentication
I am a bit confused about your setup.
Now the way ssh works is that yoy place the authorized_keys files in the $HOMEorUser/.ssh directory and that way you'll be able to run any commands from any directory that that user has access to.
Now when you say you run the command from a command directory by ssh command@ip-add i dont know how that works..
Usually if you want to run something from a server you do
ssh
And if you want to do this for other users you place a similar file in the home directory of that user "authorized_keys"
Am i confusing you any further or have i not understood what you want to ask?
Cheers
Rajeev