ssh_exchange_identification error when using sftp
From: Turner, Carl H [NTK] (CarlTurner_at_NMCC.SprintSpectrum.com)
Date: Mon, 26 Jan 2004 12:20:44 -0600 To: <email@example.com>
Hey all, I'm having issues with sftp...
Platform A: HPUX 11.11, OpenSSH_3.7.1p1
Platform B: LINUX 2.4.20-18 (Redhat bigmem), OpenSSH_3.6.1p2 (yes I know... needs upgrade)
Pub. and priv. keys are setup.
This 'sftp' command is being executed from a /bin/sh script. No fancy while/for loops around the 'sftp'. Not an expect script, etc...
Section of script where the 'sftp' command is executed:
--- sftp username@hostname >> ./sftp.log <<-EOF 2>> ./total.log put /path/to/source/file /path/to/destination/file quit EOF --- There's no real good info in any syslog files. Just "authentication failure" entries. The only thing I could think of that is messing this up is the put command giving a filename for the destination vs. just a directory path. i.e. 'put /file /' vs. 'put /file /file'. I still say sftp isn't the best choice for automation processes such as this... Any one experiencing the same/similar things? -Carl