29
15
On machine A I have the folder
/home/a/
On machine B I have the folder
/home/b/
I wish transfer all files, directories and sub-directories of /home/a in /home/b with sftp On machine A I tried the commands:
sftp fibon82@machineB.com
put /home/a/* /home/b/
but it doesn't work, i get the error message: "skipping non-regular file /home/a/a1"... [a1 is a sub-directory of a]
How could I modify the put instruction?
Thanks! :)
EDIT:
I solved using scp:
scp -r /home/a/ fibon82@machineB.com:/home/b/
@fibon82 For up-to-date manual to OpenSSH
– Martin Prikryl – 2014-12-22T19:56:11.140sftp
, refer to the OpenSSH project.2
put -r
would have worked too. – jhenninger – 2012-02-08T16:07:40.2231
Ok but how could I know that for "put command" the option -r is available? If I look here only the flag -P is described... The same in the manual Thanks! :)
– fibon82 – 2012-02-09T00:37:38.160You should post that as an answer instead. – N.N. – 2012-03-07T20:20:37.800
Yes. Instead of EDITing your question with the answer, you should answer your own question and accept it. – None – 2014-06-05T08:32:26.113