Skip to main content
2 of 3
edited body
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

use -S on the scp command

e.g. http://superuser.com/questions/87597/how-to-perform-scp-as-a-sudo-user

it will allow you to execute a script, on much like i believe you were doing with the winscp use case.

gcb
  • 953
  • 5
  • 20