login about faq

I am trying to run an automated process to transfer files to an openssh host using public keys.

The scheduled task is setup to run as a domain user (lets call him "Larry"), which has a profile setup within SSH called transfer (this ssh profile includes the hostname & user to connect as)

Everything works fine if the user running the job (Larry) is a local administrator on the client side.

the scheduled task just runs a bat file with the following:

sftpg3.exe -B put.txt transfer

the listed text file above just has a simple "put" command....

My issue is that this works fine if larry is a local admin on the client side, but gets the following error if he's setup as a regular user:

Error: Could not open connection to transfer': Could not connect totransfer': 
Authentication failed.

thoughts? I really don't like Larry having local admin privs on the client server. (he's already been given logon asa batch job BTW)

asked Sep 12 '11 at 17:04

xgene19's gravatar image


edited Sep 12 '11 at 19:47

Roman's gravatar image

Roman ♦♦

Does it work if you use password on the command line? Can you try embedding the password on the command line, such as:

sftpg3.exe --password=mysupersecretpassword -B put.txt user@server

If this works then the problem could be caused by the permissions on the config file or the key pair that was generated as an admin.


answered Sep 12 '11 at 19:30

Roman's gravatar image

Roman ♦♦

thanks! the user didn't have rights to the originally generated key, the only permissions were full control for the local administrators group.

I've given "Larry" access to this file and all is well!

(Sep 12 '11 at 19:38) xgene19 xgene19's gravatar image

no problem, glad everything worked our for "Larry"

(Sep 12 '11 at 19:55) 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



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: Sep 12 '11 at 17:04

Seen: 7,319 times

Last updated: Sep 12 '11 at 19:55

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