login about faq

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 6.0.12.50)

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

su's gravatar image

su
1


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 ?

UPDATE:

Just realized this could be failing because of user interaction. See this answer

link

answered Oct 28 '10 at 18:37

Roman's gravatar image

Roman ♦♦
7735817

edited Nov 11 '10 at 11:08

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?

link

answered Nov 10 '10 at 16:08

D.A.'s gravatar image

D.A.
3

Can you enter this as a separate question? Also can you provide an example of the batch file that you're trying to run (after scrubbing any sensitive data)?

(Nov 10 '10 at 17:34) Roman ♦♦ Roman's gravatar image

Also what are the version of the client and server involved? Did you upgrade both client and sever versions to 6.0.12 or just the server/client?

(Nov 10 '10 at 17:35) Roman ♦♦ Roman's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63
×12
×3

Asked: Oct 28 '10 at 17:48

Seen: 8,118 times

Last updated: Mar 31 '11 at 15:22

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.