- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp on hp-ux 11.23
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
тАО01-07-2010 07:07 PM
тАО01-07-2010 07:07 PM
I`m having an error as below:-
openssh version
+++++++++++++++
$ ssh -v
OpenSSH_4.4p1-hpn12v11, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.40.011, HP-UX Secure Shell version
I have set it to verify with the public/private key. For the meantime i just use the sftp to sftp back the same server before publich the key to the client server.
No matter what key i generate it keep on asking for passphrase, i didn`t specific any passphrase when generating the key. I have generated rsa1, rsa and dsa key for testing but there is no luck. I have use puttygen generate the key and transfer to the unix machine, it still no luck.
I have also set the file permission according to the requirement.
Below is the message i get with -v option.
$ sftp -v -oIdentityFile=~/.ssh/wmdvadm-private.ppk wmdvadm@10.100.22.41
Connecting to 10.100.22.41...
OpenSSH_4.4p1-hpn12v11, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.40.011, HP-UX Secure Shell version
debug1: Reading configuration data /home/wmdvadm/.ssh/config
debug1: Applying options for *
debug1: Connecting to 10.100.22.41 [10.100.22.41] port 22.
debug1: Connection established.
debug1: identity file /home/wmdvadm/.ssh/wmdvadm-private.ppk type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.4p1-hpn12v11
debug1: match: OpenSSH_4.4p1-hpn12v11 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.4p1-hpn12v11
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '10.100.22.41' is known and matches the RSA host key.
debug1: Found key in /home/wmdvadm/.ssh/known_hosts:4
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/wmdvadm/.ssh/wmdvadm-private.ppk
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
Enter passphrase for key '/home/wmdvadm/.ssh/wmdvadm-private.ppk':
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).
Connection closed
Solved! Go to Solution.
- Tags:
- sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2010 08:36 PM
тАО01-07-2010 08:36 PM
Re: sftp on hp-ux 11.23
> debug1: Trying private key: /home/wmdvadm/.ssh/wmdvadm-private.ppk
> debug1: PEM_read_PrivateKey failed
> debug1: read PEM private key done: type
I don't know what's in "wmdvadm-private.ppk",
but the SSH software seems not to like it.
> I have use puttygen generate the key and
> transfer to the unix machine, it still no
> luck.
Why not use ssh-keygen on the HP-UX system to
generate some key files? You might then
compare these key files with what's in the
".ppk" file (about which I know nothing).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 12:24 AM
тАО01-08-2010 12:24 AM
SolutionThis key file format is not directly compatible with OpenSSH. Normally this is not a problem, because PuTTYgen, the key generator utility for PuTTY, can convert the key to the desired format.
In Windows, load the .ppk file in PuTTYgen, then use Conversions -> Export. You should export the private key to OpenSSH format.
If you use the Unix port of PuTTY (available on some Linux distributions), the key can be converted with a command like:
puttygen wmdvadm-private.ppk -O private-openssh -o wmdvadm-private-openssh
(I'm not sure, but I think the Windows PuTTYgen might accept these command line options too?)
After the export operation, you should have a private key file that is compatible with HP/OpenSSH sftp.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2010 06:39 PM
тАО01-10-2010 06:39 PM
Re: sftp on hp-ux 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2010 06:42 PM
тАО01-10-2010 06:42 PM