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:
Code:
scp -J pi@169.254.47.153 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:
Code:
scp pi@169.254.47.153 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:
Code:
scp -o ProxyCommand='ssh -W %h:%p pi@169.254.47.153' pi@172.16.102.129/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:
Code:
scp pi@169.254.47.153 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?