- 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
05-07-2008 10:35 PM
05-07-2008 10:35 PM
SSH public key authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2008 10:48 PM
05-07-2008 10:48 PM
Re: SSH public key authentication
What kind of error messages you have found?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2008 10:51 PM
05-07-2008 10:51 PM
Re: SSH public key authentication
You need to run this command in ssh server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2008 10:59 PM
05-07-2008 10:59 PM
Re: SSH public key authentication
Copy the public key in the client system to the home directory of the server using the following command:
# cat $HOME/.ssh/id_dsa.pub â ssh remoteuser@remotehost
â cat - >> $HOME/.ssh/authorized_keysâ
First of all, you run this command on the server where you have created the public key using the "ssh-keygen -t [rsaâ dsa]" command.
what the "cat" command does, it appends the public key in the $HOME/.ssh/authorized_keys of the "remotehost" for user "remoteuser".
What error are you getting?
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2008 11:02 PM
05-07-2008 11:02 PM
Re: SSH public key authentication
to further troubleshoot this, run the following commands to verify that you are able to connect to the remote host:
ping remotehost
ssh remoteuser@remotehost
if these commands work, then you will be able to successfully complete this step(4).
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 12:15 AM
05-08-2008 12:15 AM
Re: SSH public key authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 12:34 AM
05-08-2008 12:34 AM
Re: SSH public key authentication
#cat $HOME/.ssh/id_rsa.pub | ssh
Don't forget to assign points!!!!;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 12:44 AM
05-08-2008 12:44 AM
Re: SSH public key authentication
what does the following command return to you?
ping hostname
if the hostname is not found in the DNS or /etc/hosts, you will have to include it there.
e.g. (extract from /etc/hosts)
192.168.111.23 hostname
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2008 04:47 AM
05-08-2008 04:47 AM
Re: SSH public key authentication
> is giving sh hostname not found..
What is the exact command which you run, and
what, exactly, is the error message?
This new copy+paste stuff can be very useful
in cases like this.