New answers tagged sftp
Is the local directory remote already created before issuing the command get -r * /remotedir ? I tried this: Created a directory on the local machine remotedir inside which I had to transfer all the folders. Issued the command get -r * remotedir without the slash and it worked. I've no idea why the / matters though.
Use mget instead of get when using metacharacters like ' and ?. You might think of the m as meaning multiple.
Try authenticating with an ssh key. Any program using ssh for the transfer will automatically find the key and not need a password. Simply run ssh-keygen -t rsa -f ~/.ssh/id_rsa Then append your new ~/.ssh/id_rsa.pub onto the remote side's ~/.ssh/authorized_keys file ssh USER@REMOTE_HOST 'cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub and ...
All these undefined symbols (LIBSSH2_ERROR_EAGAIN, ...) belong to libssh2. You need to install that library in order to compile VLC. For some reason, the ./configure script did not warn you about it... You can download libssh2 from its website or, preferably, use your package manager to do so. For example, with apt-get... $ sudo apt-get install libssh2-1 ...
What you want sounds a lot like ssh-keys. This allows you to create 'trusted' networks that don't require passwords to be entered. This also gives you added security so that you don't have a password in plain text in your script. On source machine: ssh-keygen -t rsa -b 2048 Enter file in which to save the key (/root/.ssh/id_rsa): [Hit Enter] Enter ...
It turns out that SFTP crashes if any text is output to the console. I added an echo to my ~/.bashrc, which killed it. I've added the following to the very top of .bashrc: :<<COMMENT SFTP breaks if any thing is output to the shell, and it doesn't need anything in .bashrc anyway. Description of the following line of code: "If file descriptor 0, ...
You can't access a remote file without downloading it, but you can download a remote file without saving it to the local filesystem. Not with bash itself, which doesn't include support for SFTP, but with command line utilities. The sftp client from OpenSSH doesn't seem to be able to do that: it insists to get a seekable output location, which excludes ...
With libcurl with sftp support: curl sftp://sftp.example.com -o - | do_some_magic > filename I have tested curl on these Linux distributions/Unix: libcurl with built-in sftp support: RHEL6, RHEL7 Without: RHEL5, Ubuntu 11.04, Ubuntu 14.04, Solaris 11
You can try this Match Group "domain users". It worked for me. Even I am using this more difficult syntax than you Match Group "WORKGROUP\domain users".
Top 50 recent answers are included