mirror of https://github.com/ovh/the-bastion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
544 B
30 lines
544 B
===
|
|
nc
|
|
===
|
|
|
|
Check whether a remote TCP port is open
|
|
=======================================
|
|
|
|
|
|
.. admonition:: usage
|
|
:class: cmdusage
|
|
|
|
--osh nc [--host] HOST [--port] PORT [-w TIMEOUT]
|
|
|
|
.. program:: nc
|
|
|
|
|
|
.. option:: --host HOST
|
|
|
|
Host or IP to attempt to connect to
|
|
|
|
.. option:: --port PORT
|
|
|
|
TCP port to attempt to connect to
|
|
|
|
.. option:: -w SECONDS
|
|
|
|
Timeout in seconds (default: 3)
|
|
|
|
Note that this is not a full-featured ``netcat``, we just test whether a remote port is open. There is no way to exchange data using this command.
|