Difference between revisions of "Telnet"
From Linuxintro
imported>ThorstenStaerk m |
imported>ThorstenStaerk |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Telnet allows you to submit commands over the [[network]] in plain text. It was used to execute [[shell]] [[commands]] on remote computers, but this usecase has been superceded by [[ssh]] which protects passwords by encrypting the communication. | Telnet allows you to submit commands over the [[network]] in plain text. It was used to execute [[shell]] [[commands]] on remote computers, but this usecase has been superceded by [[ssh]] which protects passwords by encrypting the communication. | ||
− | '''For | + | '''For [[controlling a computer via the network]] use ssh, not telnet!!!''' |
Telnet is still good for | Telnet is still good for | ||
− | * [[ | + | * scanning if a [[port]] is ready for commands |
− | * [[ | + | * [[Testing IMAP via telnet]] |
− | [[ | + | Here is for example how you query the http port to test if it is working: |
− | [[Category: | + | |
− | [[Category: | + | tweedleburg:~ # <abbr title="what you type">telnet localhost 80</abbr> |
+ | Trying ::1... | ||
+ | Connected to localhost. | ||
+ | Escape character is '^]'. | ||
+ | <abbr title="what you type">GET /index.htm HTTP/1.1 | ||
+ | Host: localhost | ||
+ | </abbr> | ||
+ | HTTP/1.1 200 OK | ||
+ | Date: Sun, 03 Jul 2011 18:14:34 GMT | ||
+ | Server: Apache/2.2.17 (Linux/SUSE) | ||
+ | Last-Modified: Sun, 03 Jul 2011 18:13:44 GMT | ||
+ | ETag: "576863-54-4a72e360d0600" | ||
+ | Accept-Ranges: bytes | ||
+ | Content-Length: 84 | ||
+ | Content-Type: text/html | ||
+ | |||
+ | <html> | ||
+ | <head> | ||
+ | <title> | ||
+ | Test page | ||
+ | </title> | ||
+ | </head> | ||
+ | <body> | ||
+ | hello world | ||
+ | </body> | ||
+ | </html> | ||
+ | |||
+ | = See also = | ||
+ | * [[Networking]] | ||
+ | |||
+ | [[Category:Analysis]][[Category:Command]] |
Latest revision as of 12:28, 6 January 2018
Telnet allows you to submit commands over the network in plain text. It was used to execute shell commands on remote computers, but this usecase has been superceded by ssh which protects passwords by encrypting the communication.
For controlling a computer via the network use ssh, not telnet!!!
Telnet is still good for
- scanning if a port is ready for commands
- Testing IMAP via telnet
Here is for example how you query the http port to test if it is working:
tweedleburg:~ # telnet localhost 80 Trying ::1... Connected to localhost. Escape character is '^]'. GET /index.htm HTTP/1.1 Host: localhost HTTP/1.1 200 OK Date: Sun, 03 Jul 2011 18:14:34 GMT Server: Apache/2.2.17 (Linux/SUSE) Last-Modified: Sun, 03 Jul 2011 18:13:44 GMT ETag: "576863-54-4a72e360d0600" Accept-Ranges: bytes Content-Length: 84 Content-Type: text/html <html> <head> <title> Test page </title> </head> <body> hello world </body> </html>