I am trying to sftp data to a server. I only have the option to use
password authentication.
I can sftp just fine to the server and do whatever I want.
However, if I try to sftp with a batch file, I am not prompted for my
password. It seems to just skip that option.
The userid I am using has no keys in ~/.ssh (only known_hosts)
Here is the verbose output:
sftp -v -b sftp.batch.txt
myuserid@example.com
OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to sftp.americanlafrance.com [208.3.68.147] port
22.
debug1: Connection established.
debug1: identity file /home/david/.ssh/id_rsa type -1
debug1: identity file /home/david/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version 1.82
sshlib: WinSSHD 4.22
debug1: no match: 1.82 sshlib: WinSSHD 4.22
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.4
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 'sftp.americanlafrance.com' is known and matches the DSA
host key.
debug1: Found key in /home/david/.ssh/known_hosts:1
debug1: ssh_dss_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,gssapi-with-
mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/david/.ssh/id_rsa
debug1: Trying private key: /home/david/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-with-mic,password).
Couldn't read packet: Connection reset by peer
This is OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006
Does anyone know why I am not prompted for a password when trying a
batch process?
Thanks!
--
David Filmer (
http://DavidFilmer.com)