My openwrt home router is accessible from ssh as
Code:
ssh homerouter.ddns.net -p 1234 -l userA
. From within the internal home network, a linux host is accessible as
Code:
ssh 192.168.1.100 -p 5678 -l userB
Both ssh servers do not have ssh keys and use password authentication.
I am looking for the cleanest way to download a (relatively small) file from the internal host to my laptop while being outside the internal network. I found online a command similar to this one below, but it doesn't work (the terminal gets unresponsive)
Code:
scp -J userA@homerouter.ddns.net:1234 ~/Downloads/ userB@192.168.1.203:5678/path/to/file.txt
Is scp the best command/cleanest way for this? And what is the correct way?