Carregar diretório por sftp

2

Eu tento enviar localDir para o servidor remoto. sigo este guia Guia SFTP

mas quando carrega o localDir e entra, vejo blankDir Eu fiz o seguinte

sftp> lls
404.html  crm nginx-logo.png  test.php

sftp> ls
 crm

sftp> put -r crm /usr/share/nginx/html
      Uploading crm/ to /usr/share/nginx/html/crm
      Entering crm/

Criei crm dir de acordo com a seguinte nota no SFTP Guide

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.

mas faz o upload do arquivo funcionando bem.

Alguma sugestão?

    
por Just User 12.01.2016 / 19:56

1 resposta

3

Seu erro

Pararesolveroerroporseucomentário,bastaexecutarmkdircrme,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.

    
por 12.01.2016 / 21:06

Tags