Ubuntu Network One Liners

From richud.com
Revision as of 17:10, 24 December 2017 by Chud (talk | contribs) (Test Windows machine alive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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"