first off, I know that this question has been asked before, but I'm very technologically illiterate and I'm unable to understand the answers (and they've all been answered a couple years at least), so please forgive me if this is inconvenient.
I'm trying to run an SCP command to remotely copy a linux directory (centOS) over to another remote machine (windows server 2016), but I'm experiencing an error when doing so "exec request failed on channel 0 lost connection".
scp -r serverName/var/tmp user@x.x.x.x:/backups/
I've verified that all the information is correct. When I enter the password after running the command, I'm getting the above error.
I'm not able to download any type of external software (reliable or otherwise) to assist in the matter, so any help at all would be much appreciated - if any kind soul would explain it in a simple, easy-to-understand manner, it would be very much appreciated.
EDIT: if there are any simpler ways to accomplish this, they would be very much appreciated!
ssh user@x.x.x.x
, does it ask for a password? Do you get a command prompt on the windows machine? After that doesssh user@x.x.x.x pwd
print out the home directory? This would indicate that you had something which could execute remote commands and knew enough unix to recognize "pwd" - you could trycmd /c dir
instead.