login about faq

Hi, I am also facing the same issue.My transfer do not work when the button from webpage is clicked.But if i am logged into the server and the user tries tranfer from the website, it works. Any solution found for this? i use tectia

the button click happens from a asp .net page.On click of the button a batch file gets executed which connects to the machine to transfer the file and exutes a second batch file which contains the the folder and file name.

batch1 contents

sftp2 -B "Batchfile2.bat" machine name

Batch2 content

cd /destinationpath put
c:\filename.txt quit

the webserver runs on windows machine.

We have this similar method working fine in our dev and QA environments. But unfortunately issue in production. Yestrday i realised that it works fine if i am logged into the webserver as i was monitoring the transfer when user transfered the file. The transfers after i logged off from the webserver failed and didnt even enter a log in the tectia log.


asked Apr 11 '14 at 01:51

abin's gravatar image


edited Apr 11 '14 at 18:20

Roman's gravatar image

Roman ♦♦

Hi, what are the SSH client and SSH server versions in question? Also what is the operating system on the client and on the server side?

(Apr 11 '14 at 08:46) Roman ♦♦ Roman's gravatar image

Server side OS is Windows and client side is Linux.

(Apr 11 '14 at 17:32) abin abin's gravatar image

Tectia - SSH Terminal

(Apr 11 '14 at 17:38) abin abin's gravatar image

Can you explain the setup? How is the sftp connection initiated (what exactly happens when the button from a webpage is clicked)? Where is the web server running, on the Linux or Windows server? Are both client and server Tectia ?

(Apr 11 '14 at 17:42) Roman ♦♦ Roman's gravatar image

Also, what authentication method are you using? Is it using public key authentication?

(Apr 11 '14 at 18:19) Roman ♦♦ Roman's gravatar image

we use the public key. The application id is used for transfer and also the public key was generated using the same application id.

(Apr 11 '14 at 18:32) abin abin's gravatar image

Ok, can you check where the file for the private key is located in the file system?

(Apr 11 '14 at 18:34) Roman ♦♦ Roman's gravatar image

the source folder is in the windows sever machine itself.

(Apr 11 '14 at 18:35) abin abin's gravatar image

Yes, but what is the full path to the private key file ? Could it be that the key is not readable when you are not logged in?

(Apr 11 '14 at 18:40) Roman ♦♦ Roman's gravatar image

i see the pub key in \Application Data\SSH\UserKeys folder but not the private key

(Apr 11 '14 at 18:43) abin abin's gravatar image

if the key is readable or not readable teactia should haev logged a satutus in teh log file.Here no log is logged when transfer happens.Looks like tectia didnot know the transfer was requested

(Apr 11 '14 at 18:47) abin abin's gravatar image

Also there is a second 'key_' file in the user keys folder without any extension

(Apr 11 '14 at 19:39) abin abin's gravatar image

and bot have full control on by the application id

(Apr 11 '14 at 19:39) abin abin's gravatar image
showing 5 of 13 show all

If using public key authentication this could be caused by not having the private key available when the user is not logged in. Where is the private key located? Is this windows server using roaming profile or being mounted from a windows share? If that's the case the directory might not be available when the user is not logged in and therefore failing.


answered Apr 11 '14 at 18:22

Roman's gravatar image

Roman ♦♦

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Apr 11 '14 at 01:51

Seen: 4,081 times

Last updated: Apr 11 '14 at 19:39

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