PDA

View Full Version : how to transfer files from Kali to Windows using a Proxy?



natiya
2020-02-24, 11:28
I have the following set up:

PC---Raspberry PI----Kali

All of them have connectivity, so I want to be able to get files from the Kali to the Windows 10 PC. In order to do that, I've tried this command from the PC:


scp -J [email protected] pi@:172.16.102.129/root/Test.xml /C:/Users/Desktop/

169.254.47.153 is the Raspberry IP address and 172.16.102.129 is the Kali IP. However, I got this error:


unknown option -- J

usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]

[-l limit] [-o ssh_option] [-P port] [-S program] source ... target

So I've tried this other one:


scp [email protected] pi@:172.16.102.129/root/Test.xml C:/Users/Desktop/

and I got this other message:

The system cannot find the file specified.
write: Connection reset

So I've also tried:


scp -o ProxyCommand='ssh -W %h:%p [email protected]' [email protected]/root/Test.xml C:/Users/Desktop/

and I got:


unknown option -- W

usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]

[-l limit] [-o ssh_option] [-P port] [-S program] source ... target

then, I did:


scp [email protected] pi@:172.16.102.129/root/Test.xml C:\Users\Desktop

resulting in:


The system cannot find the file specified.

ssh_exchange_identification: read: Connection reset

Any idea of what I'm missing or doing wrong, please?