- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- trouble with ssh
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
06-12-2003 07:32 AM
06-12-2003 07:32 AM
I inastalled the OpenSSH tools included on the core OS CD for HP-UX 11.i TCOE. It semmed to work fine because I only tried to go out from my local maschine. Unfortunately It comes out that it definetely is not working as I intended in the other direction.
I looked to the configuration files and checked them as good as I understood the description in the man pages. I found no error and I would like to ask everybody here to have a look and help me to find a mistake. Are there any other things to pay attention on?
Thnak you very much,
Oliver
P.S.: If I try to access the maschine from outward with ssh/scp/sftp I got an "Permission denied" and on a Linux maschine the message "Local: Key does not match.". Does this help further?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 07:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 07:49 AM
06-12-2003 07:49 AM
Re: trouble with ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 08:02 AM
06-12-2003 08:02 AM
Re: trouble with ssh
I just was thinking if you want to double check your configuration steps:
1.3 Configuring HP-UX Secure Shell
Use the following information as a supplement to the manpages and O'Reilly's
SSH, The Secure Shell -- The Definitive Guide.
HP recommends using SSH-2 to eliminate the risk of an insertion attack. The
installation script generates RSA1, RSA, and DSA server keys if these did
not previously exist. The following is a list of the host keys generated and
placed in /opt/ssh/etc/ upon installation:
------------------------------------------------------------------------
Table 1-4: Host Keys HP-UX Secure Shell Generates Upon Installation
Description Host Key
RSA1 private and public host ssh_host_key ssh_host_key.pub
keys for SSH-1
RSA private and public host keys ssh_host_rsa_key ssh_host_rsa_key.pub
for SSH-2
DSA private and public host keys ssh_host_dsa_key ssh_host_dsa_key.pub
for SSH-2
------------------------------------------------------------------------
You will find the HP-UX Secure Shell configuration files at the following
locations:
------------------------------------------------------------------------
Table 1-5: Configuration Files
File Location
server configuration file /opt/ssh/etc/sshd_config
client configuration file /opt/ssh/etc/ssh_config
------------------------------------------------------------------------
PAM
sshd uses its own configuration lines in /etc/pam.conf. You can create a
link to sshd and change the service name in /etc/pam.conf to the link name.
The service name in /etc/pam.conf must match the name of the daemon invoked.
For example, if you create a link to sshd named lsshd and you invoke lsshd,
PAM looks for the service name lsshd. If you invoke sshd, PAM looks for the
service name sshd. See the pam.conf(4) manpage for more information about
configuring PAM.
Key Generation
By default, HP-UX Secure Shell is set to use SSH-2 only. The default setting
for ssh-keygen is null. You must specify which type of keys you want
ssh-keygen to generate. ssh-keygen can create SSH-1 (RSA1) and SSH-2 (RSA,
DSA) key pairs. Use the -t option to generate SSH-2 key pairs. For example,
ssh-keygen -t dsa generates SSH-2 DSA key pairs.
Public Key Authentication
You must generate key pairs that match the protocol type (SSH-1 or SSH-2)
when using public key authentication. Use RSA1 keys for SSH-1. Use RSA or
DSA keys for SSH-2. Generate the key pair locally as the user of Secure
Shell. Add the public part of the key pair to ~/.ssh/.authorized_keys for
the appropriate user on the target system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 08:33 AM
06-12-2003 08:33 AM
Re: trouble with ssh
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 10:32 AM
06-12-2003 10:32 AM
Re: trouble with ssh
Run a copy of sshd on a non-reserved port like this:
/opt/ssh/sbin/sshd -p 2222 -d -d -d
and connect to it from your linux box as
ssh -p 2222
Then post the output from the sshd.
-p will run it on port 2222, and runin the foreground (no daemon mode). It will also exit after one connection.
-d will cause sshd to print debugging output. Using it up to three times on the command line causes more verbose output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 03:24 AM
06-23-2003 03:24 AM
Re: trouble with ssh
was ill for two weeks. I started today again with searching my missconfigurations etc.
Thank you for the detailed hints. I will work through them and post some message here again.
SY,
Oliver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 03:50 AM
06-23-2003 03:50 AM
Re: trouble with ssh
I'm not going to post ssh configuration docs here as I think they are pretty good somewhere else on the Web :))
Anyway,key not match can point to the fact that
you didn't copy the key for authorized user to that other ssh server (linux in your case?).If Linux is and ssh client - check that key is copied to the user's file with his login you're trying to access.
As to sftp - are you sure that the usual ftp works well and only secure ftp isn't?
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 03:52 AM
06-23-2003 03:52 AM
Re: trouble with ssh
I did was you sugested. Here the output (I put
ssh -v -v -v 134.94.245.118
SSH Version 1.2.27 [i686-unknown-linux], protocol version 1.5.
Standard version. Does not use RSAREF.
SSH Version 1.2.27 [i686-unknown-linux], protocol version 1.5.
Standard version. Does not use RSAREF.
SSH Version 1.2.27 [i686-unknown-linux], protocol version 1.5.
Standard version. Does not use RSAREF.
Local: Bad packet length 1349676916.
Thanks again for some ideas, Oliver