Skip to content

Instantly share code, notes, and snippets.

@donchan922
Created October 12, 2019 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/42f9fdedaff879ebed8699c9193fe73b to your computer and use it in GitHub Desktop.
Save donchan922/42f9fdedaff879ebed8699c9193fe73b to your computer and use it in GitHub Desktop.
# 使用方法
$ telnet [hostname or IP] [port]
# リモートサーバのポートが空いている場合
$ telnet 192.168.1.2 22
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.4p1 Raspbian-10+deb9u6
^]
telnet> q
Connection closed.
# リモートサーバのポートが閉じている場合
$ telnet 192.168.1.3 22
Trying 192.168.1.3...
telnet: connect to address 192.168.1.3: Connection refused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment