Ubuntu Network One Liners
Test Windows machine alive
Quickly see if its alive if ping blocked, w-3 second timeout, z-test only, v-verbose, XXXXXXXX-machine hostname, target port to try
$ nc -w3 -z -v XXXXXXXX 443 Connection to XXXXXXXX 443 port [tcp/https] succeeded!
Copy file over ssh without scp
(In this case over an established ssh tunnel, password prompt works ok)
cat raspi-gpio | ssh -p 2222 rpi@localhost "cat > raspi-gpio"