Getting sftp to work in batch mode



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

.



Relevant Pages

  • Re: ssh as non-root user
    ... The server is reporting the following to the client: ... server offers auth methods ''. ... debug: ... Unauthorized access or use of this computer system may subject violators to ...
    (SSH)
  • login with public keys
    ... ssh client to a redhat server with openssh. ... debug: Entering event loop. ... server offers auth methods 'publickey,password,keyboard-interactive'. ...
    (SSH)
  • sftp server fail
    ... I can log into a remote server with no problems, ... I can scp stuff TO the server, ... debug: server offers auth methods 'publickey,password'. ...
    (comp.security.ssh)
  • SSH public key not working
    ... I have problem to connect from OpenVMS 7.3-2/TCPIP 5.4 to Red Hat ES 4.0 ... debug: server offers auth methods 'publickey,gssapi-with-mic,password'. ...
    (comp.os.vms)
  • Gesucht - Virensoftware die funktioniert
    ... Server specifications ... - winmsd output from the OSCE server ... To turn on the server debug program: ... Setting window appears 3. select the Enable debug log check box. ...
    (microsoft.public.de.german.exchange2000.general)