New answers tagged

0

I have changed the value of requiredpasswordauthentication to "Yes" in sshd configuration and then rebooted the service. Now I am able to do sftp via password.


0

It's a bit of a kludge but what works for me is to: Use ssh to login to the remote machine Use sftp from the remote machine to your local machine Then use the get command with the -r option to move the directory and all of its files.


0

That script might be made to work (but the manual page does not hint that it would accept the user and password in that manner). What works for me is to factor out the user/password like this: lftp -u user,password -e "command" But I am using that with a private key, by setting options at the beginning of the command to use a given mykeyfile (which one ...


2

How can I log the password entered to 'sftp' command? Basically you can't until you modify the source code of openssh. And you don't want to do this. sftp is using secure shell (SSH), which reads the password sends it to the server and safely zeroes the memory where it was stored. This implies you should not be able to get the password, which is a good ...


0

As @Michael Kohne told, this is not secure at all. For your testing, you can try sshpass package $ sudo apt-get install sshpass Then try $ sshpass -p 'PASSWROD' sftp jonestom@sftp.sharebox.com:/ftp/jonestom The line will be saved in your history Remember, take care about what you're testing.


1

When rsync believes it's accessing both source and destination on the same host it does not use its incremental transfer. Instead, it simply copies the entire file. This is the situation in your case. As a result, your second command is copying the file.so~new across your ssh fuse link to the local host, and then immediately copying it back again. Is there ...


1

You can use scp, which is SSH copy scp <path to file> <IP dest>:<path to dest dir>


0

You may use "ssh remote execution": $> ssh user@debianserver mv /home/user/Downloads/file_xy /media/user/External For ease of use add the local ssh public key to the known keys on the Debian server, so you don't have to enter the password for the account user every time: $> ssh-copy-id user@debianserver



Top 50 recent answers are included