Here are several different ways to test a TCP port without telnet.
BASH (man page)
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
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 < /dev/tcp/127.0.0.1/23
| #!/bin/sh | |
| # Sample /etc/qemu-ifup to have bridged networking between qemu instances and your real net | |
| # You need "youruser ALL=(root) NOPASSWD: /etc/qemu-ifup" in /etc/sudoers | |
| # You also need enough rights on /dev/tun | |
| BRIDGE=br0 | |
| if [ -z "$1" ]; then | |
| exit 1 | |
| fi | |
| if [ $UID -ne 0 ] | |
| then |