2

I need to transfer multiple folders from my server to my pc. I'm currently using a command like:

pscp -r user@ServerIP:/public_html/folderA "C:\folderA" && pscp -r user@ServerIP:/public_html/folderB "C:\folderB"

The problem is that the above command is handled as 2 separate commands, requiring me to type the server password twice (once before the folderA command is executed and once before the folderB command is executed).

Is it possible to merge the commands in such a way, that the password is only required once?

John Militer
  • 773
  • 4
  • 14
  • 29
Ralph
  • 21
  • 1
  • you run it on linux ? – Darek Feb 19 '15 at 12:42
  • It's a linux server and I'm running PSCP via a Windows command prompt. – Ralph Feb 19 '15 at 12:53
  • you may wish to install a key on unix account. if the key is password less, you will have no need for passwd, if you setup a passwd, you can use pageant to store the key and the passwd. – Archemar Feb 19 '15 at 13:07
  • Okay, but does that mean there's no way to merge commands in such a way, that a password is only required once? – Ralph Feb 19 '15 at 13:20
  • I am afraid not with pscsp, you can push multiple file/folder from local to remote, but no the other way round. – Archemar Feb 19 '15 at 13:23

0 Answers0