Skip to content

Instantly share code, notes, and snippets.

Here are several different ways to test a TCP port without telnet.

$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C

$ cat &lt; /dev/tcp/127.0.0.1/23

Keybase proof

I hereby claim:

  • I am christophlsa on github.
  • I am synex (https://keybase.io/synex) on keybase.
  • I have a public key whose fingerprint is A9D7 973E 448F 921D B96F 1673 FEF2 F3A2 15C7 C0C9

To claim this, I am signing this object: