- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- OpenSSH guru needed for HPUX to Windows sftp
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
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
тАО04-29-2009 09:08 AM
тАО04-29-2009 09:08 AM
OpenSSH guru needed for HPUX to Windows sftp
It is one thing to do SSH for HPUX-2-HPUX, another for HPUX-2-Windows.
Me, the HPUX client.
Them, the Windows server running GlobalScale SFTP software, that says it accepts OpenSSH code.
I managed to finally get it to update my accounts known_host file. But I can't seem to get it past that.
They provided me with public & private keys. Have tried both rsa and dsa. Here is the latest debug log, you will note that it DEMANDS the passphrase and password. And yes, they even gave me them. But on keying it - it still fails. Take a look:
===================================
ebug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/brickstr/./.ssh/id_rsa (00000000)
debug2: key: /home/brickstr/./.ssh/id_dsa (00000000)
debug3: input_userauth_banner
GlobalSCAPE Secure FTP Server (v. 3.2)debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/brickstr/./.ssh/id_rsa
debug3: no such identity: /home/brickstr/./.ssh/id_rsa
debug1: Trying private key: /home/brickstr/./.ssh/id_dsa
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
debug2: bad passphrase given, try again...
Enter passphrase for key '/home/brickstr/./.ssh/id_dsa':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
debug2: bad passphrase given, try again...
Enter passphrase for key '/home/brickstr/./.ssh/id_dsa':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
debug2: bad passphrase given, try again...
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password brickstr@securetransfer.tymetrix360.com's password:
debug3: packet_send2: adding 48 (len 61 padlen 19 extra_pad 64)
debug2: we sent a password packet, wait for reply Authenticated with partial success.
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug1: No more authentication methods to try.
Permission denied (publickey).
Connection closed
$
======================================
I would greatly appreciate any thoughts or ideas anyone might have on this.
Thanks,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 10:40 AM
тАО04-29-2009 10:40 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
Until you find one...
_Which_ HP-UX? "uname -a"? "ssh -V"? Or
were you looking for a _psychic_ guru?
> Take a look:
And what would I be looking at?
> They provided me with public & private keys.
I can't see them. Do they have the same
format as keys you've created on HP-UX?
There are two popular key file formats,
OpenSSH and SSH2. They differ.
> debug3: no such identity: /home/brickstr/./.ssh/id_rsa
I gather that that one's not there. With my
weak psychic powers, I can't see what's in
your "~/.ssh" directory, either.
> debug1: Trying private key: /home/brickstr/./.ssh/id_dsa
> debug1: PEM_read_PrivateKey failed
That looks bad. If you do the same sort of
SSH command to a working HP-UX system, does
it do that? Around here (guessing that you
tried "ssh -v [...]"), I see things more like
this:
[...]
debug1: Trying private key: /root/.ssh/id_dsa
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
[...]
This suggests a problem with the "id_dsa" key
file. No bets, but the request for a
passphrase, which, I assume, was not
expected, could be caused by a bad key file
confusing the SSH client.
If you do have SSH2 key files, try "man
ssh-keygen", and look for "-i".
> [...] they even gave me them. [...]
Were you expecting to need either?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:14 AM
тАО04-29-2009 11:14 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:16 AM
тАО04-29-2009 11:16 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:23 AM
тАО04-29-2009 11:23 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
Which HP-UX?
HPUX 11.11, sorry I should know better than doing that.
Take a look?
Your looking at partial of the sft debug output log.
Pub & Priv Keys
They created using their Windows GlobalScape software. I'm guessing SSH2, based on what I've read in some of their site documentation.
>>>Have since discovered if I try to run ssh-keygen -i -f
But if I run ssh-keygen on
And both private and public files were there, it is as though they simply refuse to read, but it does, cause if I change the permissions to something to high - I get a security warning msg regarding the files.
>>>If I leave only the private key, it runs through ignores the file & stops asking for passphrase & password. Which it rejects and disconnects.
If I leave only the public key - it runs through ignores the file & stops and asks only for the password (no passphrase request).
So it's seeing them, not really accepting them (and they provided the keys) and attempting other authentication requests - which it still rejects.
Your right....it doesn't look good to me either.
Any other thoughts.........
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:24 AM
тАО04-29-2009 11:24 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:31 AM
тАО04-29-2009 11:31 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
Yes I put the keys in the
And like I said, it's so much easier when I can control the setup at both sides. Unfortunately, I have been tasked with setting this up for automated transfer (secure and encrypted) to sftp with this company's Windows FTP server. Which is not our box.
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:33 AM
тАО04-29-2009 11:33 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:42 AM
тАО04-29-2009 11:42 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
I thought the import command of ssh-keygen would read a file in SSH2 format and print an OpenSSH private key.
That is what I was trying to accomplish with the ssh-keygen -i -f
Now I'm no SSH guru, which is why I posted for better minds to get some help...
Here our Windows PC's are locked down, so I can't just download software without jumping through a couple hoops first.
Let me know,
Thanks,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:43 AM
тАО04-29-2009 11:43 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:50 AM
тАО04-29-2009 11:50 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 11:51 AM
тАО04-29-2009 11:51 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
Thanks,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 12:01 PM
тАО04-29-2009 12:01 PM
Re: OpenSSH guru needed for HPUX to Windows sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 12:29 PM
тАО04-29-2009 12:29 PM
Re: OpenSSH guru needed for HPUX to Windows sftp
> with the ssh-keygen -i -f
> >
Can't see what was in
see what went into
what "
which (public/private)
> [...] it fails.
Don't know what "it" is, can't tell what
"fails" means here.
As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions and interpretations.
Potential clues:
One of my SSH2 key public files includes this
text:
---- BEGIN SSH2 PUBLIC KEY ----
[... multiple 70-character lines ...]
---- END SSH2 PUBLIC KEY ----
A corresponding OpenSSH public key file looks
more like:
ssh-dss [... one long line of stuff ...]
The private key files look more similar, but
still differ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 01:19 PM
тАО04-29-2009 01:19 PM
Re: OpenSSH guru needed for HPUX to Windows sftp
It's not supposed to work that way. The theory is that the side that is going to actively establish a connection (apparently you) should create his/her own SSH key pair and send only the _public_ key to the admin of the other side.
Ideally the private key is generated by the user that needs it, on the host where it's needed. The only valid reasons for moving the private key are backups and migration of the user to another server. Certainly your private key should always stay on systems and media that is controlled by you (or your organization).
While there are only two well-known formats for the SSH2 public key and conversion between the two is simple, the private key file format is not so well standardized.
I know of at least three different SSH private key file formats (OpenSSH, ssh.com and PuTTY .ppk) and fully expect that other SSH client authors have invented more formats. Converters between these formats may or may not exist.
You should not waste too much effort in trying to convert the private key file you received into a format that is understandable by OpenSSH. Unless you received the key using some secure transmission method (encrypted email, or hand-delivery) you should regard it as potentially compromised and untrustworthy anyway.
The only obvious use I see for the public key you received is that you can examine it to identify the SSH public key format their software uses. As Steven already described: if the file has multiple lines, it uses ssh.com style key format and you should convert your OpenSSH style public key to that format (with e.g. "ssh-keygen -e -f ~/.ssh/id_rsa.pub > id_rsa_sshcom_format.pub") before sending it.
If their public key is one long line of text, the public key format is OpenSSH and no conversion is necessary.
Instead create your own SSH key pair ("ssh-keygen -t rsa" for a RSA-type keypair, or "ssh-keygen -t dsa" for DSA respectively). If necessary, convert the public key, then send it to the Windows admins to be installed into their system.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 04:29 AM
тАО04-30-2009 04:29 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
But still if you can get access to a windows machine and use puttygen, you could change it yourself.
http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter8.html#puttygen-conversions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 04:58 AM
тАО04-30-2009 04:58 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
puttygen creates a key truncated by carriage returns. You need to remove them before the key is useful to permit access to a Unix by ssh key.
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-01-2009 09:36 AM
тАО05-01-2009 09:36 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
Seems that GlobalScape will read OpenSSH, but in the end how the keys were being created from their (Window's) side didn't bode well here. My thought, getting their keys via email (you know ascii) probably corrupted them, and the vendor agreed.
So, all my talking to their staff came to nothing until he heard it by the vendor to basically do what I suggested. [..somewhat annoying when the other side won't listen until he hears it from someone else..]
Anyway, I created the keys on my (yes my HPUX) box, fresh and new with a simple (ssh-keygen -t rsa) and NO passphrase; reset the permissions to 600 for the id_rsa.pub key. Then I sftp'd into their box, using the password they gave me temporarily to get in, and dropped the public key file only.
Came back out, he then changed his side to just be looking for key authentication and I reconnected using sftp and voila I was there on his Windows box - dropped a couple testfiles and came out. All good!
So, without having to do any kind of conversion or import/export, we got it working.
I have a headache now...
Thanks to all and points a coming!
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 09:40 AM
тАО05-01-2009 09:40 AM
Re: OpenSSH guru needed for HPUX to Windows sftp
Gave anywhere from 2 (for alot of ideas) to 5 for single suggestions.
It's working....so I can finally get some coffee and something for my headache and close this task.
It is so much easier to sftp HPUX-2-HPUX.
Regards to All !!
Thread Closed
Rita