Seu erro
Pararesolveroerroporseucomentário,bastaexecutarmkdircrm
e,emseguida,executarput-rcrm
.
Thesameflagsthatworkwith"get" apply to "put". So to copy an entire local directory, you can issue:
put -r localDirectory
Note
There is currently a bug in the versions of OpenSSH shipped with current Ubuntu releases (at least 14.04 to 15.10) that prevents the above command from operating correctly. Upon issuing the command above to transfer content to a server using the buggy version of OpenSSH, the following error will be given:
Couldn't canonicalise: No such file or directory.
To work around this issue, create the destination directory on the remote end first by typing
mkdir localDirectory
. Afterwards, the above command should complete without error.