- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh keys.
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
Discussions
Discussions
Forums
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
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
тАО10-21-2009 11:01 PM
тАО10-21-2009 11:01 PM
ssh keys.
Thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 11:09 PM
тАО10-21-2009 11:09 PM
Re: ssh keys.
Attached an extract from SNA-2 dealing with ssh.
May be this is of some help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 11:26 PM
тАО10-21-2009 11:26 PM
Re: ssh keys.
Here is the Steps:
On the client run the following commands:
$ mkdir -p $HOME/.ssh
$ chmod 0700 $HOME/.ssh
$ ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P ''
This should result in two files, $HOME/.ssh/id_dsa (private key) and $HOME/.ssh/id_dsa.pub (public key).
Copy $HOME/.ssh/id_dsa.pub to the server.
On the server run the following commands:
$ cat id_dsa.pub >> $HOME/.ssh/authorized_keys2
$ chmod 0600 $HOME/.ssh/authorized_keys2
Depending on the version of OpenSSH the following commands may also be required:
$ cat id_dsa.pub >> $HOME/.ssh/authorized_keys
$ chmod 0600 $HOME/.ssh/authorized_keys
An alternative is to create a link from authorized_keys2 to authorized_keys:
$ cd $HOME/.ssh && ln -s authorized_keys2 authorized_keys
On the client test the results by ssh'ing to the server:
$ ssh -i $HOME/.ssh/id_dsa server
(Optional) Add the following $HOME/.ssh/config on the client:
Host server
IdentityFile ~/.ssh/id_dsa
This allows ssh access to the server without having to specify the path to the id_dsa file as an argument to ssh each time.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 11:43 PM
тАО10-21-2009 11:43 PM
Re: ssh keys.
Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Trying private key: ""
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-with-mic,password).
Unable to connect to the remote system, permission denied
The test of system [WEBSRV_aero] failed!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 11:56 PM
тАО10-21-2009 11:56 PM
Re: ssh keys.
can you attach the gud docs its corrupted which u have provided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:46 AM
тАО10-22-2009 07:46 AM
Re: ssh keys.
in this forum involving SSH configuration.
Did you read any of them?
> any configurations settings need to be
> changed?
Probably, but we non-psychics can't really
see what you have now. As usual, showing
actual commands with their actual output can
be more helpful than vague descriptions and
interpretations. "ls -l" is a good one.
> while try connecting it shows as
Is that output from "ssh -v [...]"? Where is
the rest of it?
> debug1: Trying private key: ""
That doesn't look like a good key file name.
> debug1: No more authentication methods to try.
> Permission denied (publickey,gssapi-with-mic,password).
> Unable to connect to the remote system, permission denied
I don't think that it's talking about file
permissions there, only the fact that you
couldn't authenticate.
> The test of system [WEBSRV_aero] failed!
Should that mean something to me? It
doesn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 08:35 AM
тАО10-22-2009 08:35 AM
Re: ssh keys.
Check your procedure against these two documents.
http://www.hpux.ws/?p=10
http://www.hpux.ws/?p=19
The first is relevant. The second is really cool to know.
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
тАО10-22-2009 08:55 AM
тАО10-22-2009 08:55 AM
Re: ssh keys.
debug1: Trying private key: ""
debug1: No more authentication methods to try. .."
1) Well, how did you attempt to connect to it *exactly*. ssh or PuTTY or ??? What did you specify for the id file? You did specify one right?
2) It appears you've omitted some of the debug output...somewhere it should have told you that it attempted to connect using a public key "xxxx"?