Getting sftp to work in batch mode
- From: Ken Robinson <kenrbnsn@xxxxxxxxx>
- Date: Fri, 17 Aug 2007 18:27:38 -0000
I've read all the previous posts on the subject as well as the posts
in the IRTC and I still can't get this to work. I think I know why
sftp is so secure -- no one can get it to work.
Environment:
VMS:
HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 6
on a AlphaServer 4X00 5/400 4MB running OpenVMS V7.3-2
Remover Server:
HPUX (I think) running SSH-2.0-OpenSSH_4.0
I've sent the public key and the admin on the unix machine converted
it to the OpenSSH format
Here's part of the output obtained by doing:
$ sftp -v "-B" tt: user@xxxxxxxxxxxxxxxxxx
debug: Connecting to remote.host.domain, port 22... (SOCKS not used)
debug: Ssh2/SSH2.C:2872: Entering event loop.
debug: Ssh2Client/SSHCLIENT.C:1608: Creating transport protocol.
debug: SshAuthMethodClient/SSHAUTHMETHODC.C:101: Added "publickey" to
usable methods.
debug: SshAuthMethodClient/SSHAUTHMETHODC.C:101: Added "password" to
usable methods.
debug: Ssh2Client/SSHCLIENT.C:1649: Creating userauth protocol.
debug: client supports 2 auth methods: 'publickey,password'
debug: SshUnixTcp/SSHUNIXTCP.C:1378: using local hostname
my.host.domain
debug: Ssh2Common/SSHCOMMON.C:546: local ip = xxx.xxx.xxx.xxx, local
port = 49328
debug: Ssh2Common/SSHCOMMON.C:548: remote ip = yyy.yyy.yyy.yyy, remote
port = 22
debug: SshConnection/SSHCONN.C:2290: Wrapping...
debug: Remote version: SSH-2.0-OpenSSH_4.0
debug: OpenSSH: Major: 4 Minor: 0 Revision: 0
debug: Ssh2Transport/TRCOMMON.C:1828: All versions of OpenSSH handle
kex guesses incorrectly.
debug: Ssh2Transport/TRCOMMON.C:2268: lang s to c: `', lang c to s: `'
debug: Ssh2Transport/TRCOMMON.C:2333: c_to_s: cipher aes128-cbc, mac
hmac-sha1, compression none
debug: Ssh2Transport/TRCOMMON.C:2336: s_to_c: cipher aes128-cbc, mac
hmac-sha1, compression none
debug: Remote host key found from database.
debug: Ssh2Common/SSHCOMMON.C:347: Received SSH_CROSS_STARTUP packet
from connection protocol.
debug: Ssh2Common/SSHCOMMON.C:397: Received SSH_CROSS_ALGORITHMS
packet from connection protocol.
debug: server offers auth methods 'publickey,password,keyboard-
interactive'.
debug: Ssh2AuthPubKeyClient/AUTHC-PUBKEY.C:1682: adding keyfile "/
$2$DKC0/myusername/ssh2/myusername-MY_HOST_DOMAIN" to candidates
debug: Ssh2AuthPubKeyClient/AUTHC-PUBKEY.C:1682: adding keyfile "/
$2$DKC0/myusername/ssh2/id_rsa_2048_a" to candidates
debug: server offers auth methods 'publickey,password,keyboard-
interactive'.
debug: server offers auth methods 'publickey,password,keyboard-
interactive'.
debug: Ssh2AuthClient/SSHAUTHC.C:377: Method 'publickey' disabled.
debug: server offers auth methods 'publickey,password,keyboard-
interactive'.
debug: Ssh2AuthPasswdClient/AUTHC-PASSWD.C:261: In Batchmode, so we're
not asking the user for password.
debug: Ssh2AuthClient/SSHAUTHC.C:377: Method 'password' disabled.
The line that says "debug: Ssh2AuthClient/SSHAUTHC.C:377: Method
'publickey' disabled." is the one that concerns me. Why is it being
disabled? How can I debug this further? Why does setting up sftp to
use public keys have to be so difficult? :-)
Thanks in advance.
Ken
.
- Prev by Date: Re: Fun with bugs
- Next by Date: Re: incoming SMTP 255 character wrap
- Previous by thread: Requirement looking for VMS/C++ Developer, St Louis, MO, 6 -12 months Contract to Hire
- Next by thread: Re: Getting sftp to work in batch mode
- Index(es):
Relevant Pages
|