cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP problem on TRu 64 5.1B

vinod u
Advisor

SFTP problem on TRu 64 5.1B

Hi All, We have a req where we need to generate keys on Tru 64 and we need to send Public Keys to another Team where they will implement in Windows server. And our scripts generates some reports and places in SFTP server through SFTP.

This is what I have done and facing problem from sftp server. Please verify and let me know some thing is wrong.



nagara:/home/vinod/.ssh> ssh -V
ssh: SSH Secure Shell Tru64 UNIX 3.2.0

nagara:/home/vinod/.ssh> ssh-keygen -t id_dsa_mg

Error: unknown key type.

nagara:/home/vinod/.ssh> ssh-keygen -t dsa
Generating 2048-bit dsa key pair
16 .oOo.oOo.oOo
Key generated.
2048-bit dsa, vinod@nagara, Thu Nov 27 2008 15:50:49 -0500
Passphrase :
Again :
Passphrases do not match.
Passphrase :
Again :
Private key saved to /home/vinod/.ssh2/id_dsa_2048_c
Public key saved to /home/vinod/.ssh2/id_dsa_2048_c.pub
nagara:/home/vinod/.ssh>

nagara:/home/vinod/.ssh>
nagara:/home/vinod/.ssh>
nagara:/home/vinod/.ssh> sftp -v -oPort=22 SERV_MG_ACCREP@compliance.sec.hp.com
SshFileCopy/sshfilecopy.c:968: Making local connection.
SshFileXferClient/sshfilexferc.c:1234: ext_name `newline@vandyke.com', data:
00000000: 0a .
SshFileCopy/sshfilecopy.c:907: Connection to local, ready to serve requests.
Sftp2/sftp2.c:350: Connection ready.
SshReadLine/sshreadline.c:3388: Initializing ReadLine...
SshFileCopy/sshfilecopy.c:978: Connecting to remote host. (host = SERV_MG_ACCREP@compliance.sec.hp.com, user = NULL, port = NULL)

argv[0] = /usr/bin/ssh2
argv[1] = -v
argv[2] = -x
argv[3] = -a
argv[4] = -o
argv[5] = passwordprompt %U@%H's password:
argv[6] = -o
argv[7] = authenticationnotify yes
argv[8] = -o
argv[9] = Port=22
argv[10] = SERV_MG_ACCREP@compliance.sec.hp.com
argv[11] = -s
argv[12] = sftp
Sftp2/sftp2.c:2865: notification: 0
Sftp2/sftp2.c:2865: notification: 1
debug: SshAppCommon/sshappcommon.c:185: Allocating global SshRegex context.
debug: SshConfig/sshconfig.c:2795: Version not found on first line, assuming configuration to be old style.
debug: SshConfig/sshconfig.c:646: Setting variable 'VerboseMode' to 'FALSE'.
debug: SshConfig/sshconfig.c:2737: Unable to open /home/vinod/.ssh2/ssh2_config
debug: Connecting to compliance.sec.hp.com, port 22... (SOCKS not used)
debug: Ssh2/ssh2.c:2332: Entering event loop.

Thanks in advance
1 REPLY
Steven Schweda
Honored Contributor

Re: SFTP problem on TRu 64 5.1B

> debug: Ssh2/ssh2.c:2332: Entering event loop.

And it stops there? Around here:

urtx> sftp -v -oPort=22 sms@alp
SshFileCopy/sshfilecopy.c:968: Making local connection.
SshFileXferClient/sshfilexferc.c:1234: ext_name `newline@vandyke.com', data:
00000000: 0a .
SshFileCopy/sshfilecopy.c:907: Connection to local, ready to serve requests.
Sftp2/sftp2.c:350: Connection ready.
SshReadLine/sshreadline.c:3388: Initializing ReadLine...
SshFileCopy/sshfilecopy.c:978: Connecting to remote host. (host = sms@alp, user = NULL, port = NULL)
argv[0] = /usr/bin/ssh2
argv[1] = -v
argv[2] = -x
argv[3] = -a
argv[4] = -o
argv[5] = passwordprompt %U@%H's password:
argv[6] = -o
argv[7] = authenticationnotify yes
argv[8] = -o
argv[9] = Port=22
argv[10] = sms@alp
argv[11] = -s
argv[12] = sftp
Sftp2/sftp2.c:2865: notification: 0
Sftp2/sftp2.c:2865: notification: 1
debug: SshAppCommon/sshappcommon.c:185: Allocating global SshRegex context.
debug: SshConfig/sshconfig.c:2795: Version not found on first line, assuming configuration to be old style.
debug: SshConfig/sshconfig.c:646: Setting variable 'VerboseMode' to 'FALSE'.
debug: SshConfig/sshconfig.c:2737: Unable to open /usr/users/sms/.ssh2/ssh2_config
debug: Connecting to alp, port 22... (SOCKS not used)
debug: Ssh2/ssh2.c:2332: Entering event loop.
debug: Ssh2Client/sshclient.c:1452: Creating transport protocol.
debug: SshAuthMethodClient/sshauthmethodc.c:95: Added "publickey" to usable methods.
debug: SshAuthMethodClient/sshauthmethodc.c:95: Added "password" to usable methods.
debug: Ssh2Client/sshclient.c:1493: Creating userauth protocol.
debug: client supports 2 auth methods: 'publickey,password'
debug: SshUnixTcp/sshunixtcp.c:1231: using local hostname urtx.antinode.org
debug: Ssh2Common/sshcommon.c:541: local ip = 10.0.0.8, local port = 1056
debug: Ssh2Common/sshcommon.c:543: remote ip = 10.0.0.9, remote port = 22
debug: SshConnection/sshconn.c:1957: Wrapping...
debug: Ssh2/ssh2.c:996: Opening /dev/tty for queries.
debug: SshReadLine/sshreadline.c:3388: Initializing ReadLine...
debug: Remote version: SSH-2.0-3.2.0 SSH Secure Shell OpenVMS V5.5 VMS_sftp_version 3
debug: Major: 3 Minor: 2 Revision: 0
debug: Ssh2Transport/trcommon.c:1913: lang s to c: `', lang c to s: `'
debug: Ssh2Transport/trcommon.c:1978: c_to_s: cipher aes128-cbc, mac hmac-sha1, compression none
debug: Ssh2Transport/trcommon.c:1981: s_to_c: cipher aes128-cbc, mac hmac-sha1, compression none
debug: Remote host key found from database.
debug: Ssh2Common/sshcommon.c:342: Received SSH_CROSS_STARTUP packet from connection protocol.
debug: Ssh2Common/sshcommon.c:392: Received SSH_CROSS_ALGORITHMS packet from connection protocol.
debug: server offers auth methods 'hostbased,publickey,password'.
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1602: adding keyfile "/usr/users/sms/.ssh2/sms_npp_id_dsa_1024_a" to candidates
debug: Constructing and sending signature in publickey authentication.
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:794: ssh_client_auth_pubkey_send_signature: reading /usr/users/sms/.ssh2/sms_npp_id_dsa_1
024_a
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1823: Public key authentication was successful.
debug: Ssh2Common/sshcommon.c:310: Received SSH_CROSS_AUTHENTICATED packet from connection protocol.
debug: SshReadLine/sshreadline.c:3454: Uninitializing ReadLine...
debug: Ssh2/ssh2.c:731: Returning user input stream to original values.
[...]
Sftp2/sftp2.c:2880: read_bytes: 18, buffer len: 18
Sftp2/sftp2.c:2882: received message:
00000000: 4155 5448 454e 5449 4341 5445 4420 5945 AUTHENTICATED YE
00000010: 530a S.
Sftp2/sftp2.c:2887: buffer: 'AUTHENTICATED YES
'
debug: SshTtyFlags/sshttyflags.c:371: Not a tty. (fd = 0)
SshFileXferClient/sshfilexferc.c:1234: ext_name `newline@vandyke.com', data:
00000000: 0a .
SshFileCopy/sshfilecopy.c:907: Connection to remote host 'sms@alp', ready to serve requests.
sftp>


Do you have a file, "~/.ssh2/identification"?
It should exist (and not let others write
it), and probably contain something like:

IdKey id_dsa_2048_c

But I wouldn't expect to see what you see if
it were missing.

You might try ssh (-v) from the Tru64 system
to itself. That might tell you something.

My versions look similar (but patches could
differ):

urtx> sizer -v
HP Tru64 UNIX V5.1B (Rev. 2650); Mon Feb 19 11:57:07 CST 2007
urtx> sftp -V
sftp: SSH Secure Shell Tru64 UNIX 3.2.0