os:linux:troubleshooting
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
os:linux:troubleshooting [30.07.2024 19:21] – внешнее изменение 127.0.0.1 | os:linux:troubleshooting [20.10.2024 07:52] (текущий) – [Доступен ли порт] viacheslav | ||
---|---|---|---|
Строка 41: | Строка 41: | ||
nc -zv 127.0.0.1 20-30 | nc -zv 127.0.0.1 20-30 | ||
- | # Bash тоже умеет | + | # Bash тоже умеет: |
# If host is a valid hostname or Internet address, and port is an integer port number | # If host is a valid hostname or Internet address, and port is an integer port number | ||
# or service name, bash attempts to open a connection to the corresponding socket. | # or service name, bash attempts to open a connection to the corresponding socket. | ||
Строка 49: | Строка 49: | ||
/ | / | ||
- | admin:~> cat < /dev/tcp/127.0.0.1/22 | + | echo 2> / |
- | SSH-2.0-OpenSSH_6.2p2 Debian-6 | + | Success |
- | ^C pressed here | + | |
- | # telnet | + | # telnet |
telnet 127.0.0.1 22 | telnet 127.0.0.1 22 | ||
</ | </ | ||
https:// | https:// |
os/linux/troubleshooting.1722367260.txt.gz · Последнее изменение: 30.07.2024 19:21 — 127.0.0.1