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 [email protected]
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/ [email protected]:/home/b/
put -r
would have worked too.sftp
, refer to the OpenSSH project.