I am trying to use sftp in batch mode. sftp version info is - sftp: SSH Tectia Client 6.0.12 on x86_64-unknown-linux-gnu Build: 50 Product: SSH Tectia Client License type: commercial SFT API: 2.0.3 (build 22.214.171.124)
Running as sftp -B /tmp/cmds my_hostname
Gives error -
Opening connection to 'my_hostname'. error: Could not open connection to `my_hostname': Disconnected by application error: Aborting batchmode.
asked Oct 28 '10 at 17:48
This is what you usually get if the client is unable to contact the server at all.
Are you able to reach the server without the batch mode? or using sshg3 ?
Just realized this could be failing because of user interaction. See this answer
I'm having the same error as the original post. I'm able to connect to the server when using sftp2 from the command line (sftp2 id@hostname). But when I use a batch file to run the script, i'm getting the following message: "error: could not connect to `hostname'"
We've upgraded from Tectia 4 to 6.0.12 and we're getting this error. Any idea what we're missing?
answered Nov 10 '10 at 16:08