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:
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
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)
Does it work if you use password on the command line? Can you try embedding the password on the command line, such as:
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