Questions tagged [telnet]

Telnet is an old protocol for bidirectional interactive text-oriented communication with remote hosts via virtual terminals. It is defined in rfc854. On modern UNIX-like systems it is replaced with more secure and flexible SSH protocol.

Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communications facility using a virtual terminal connection. User data is interspersed in-band with Telnet control information in an 8-bit byte oriented data connection over the Transmission Control Protocol (TCP).

Shell example:

telnet website.com 80 # telnet to the website with port 80

Then HTTP methods can be executed like below

GET /index.html

More information at http://en.wikipedia.org/wiki/Telnet

2479 questions
19
votes
2 answers

let telnet execute single command in one line

hey i can login into telnet with "telnet localhost 4242" now i want to execute a single command "show network". How can i do this in one line ? something like that $ telnet localhost 4242 <- "show network" woa here the output i want
Nick Russler
  • 4,608
  • 6
  • 51
  • 88
19
votes
4 answers

How to send carriage return over telnet?

I am using Ubuntu telnet client. I am trying to send 2 lines over the telnet connection that I have made. For example: > telnet en.wikipedia.org 80 GET /wiki/Main_Page http/1.1 // line 1 Host: en.wikipedia.org …
user188276
19
votes
3 answers

The IP you're using to send mail is not authorized to send email directly to our servers

hi i wanted to send mail via smtp protocol to one of my gmail's accounts... i tried but finally it occurred and error : telnet> open alt4.gmail-smtp-in.l.google.com 25 Trying 74.125.131.27... Connected to alt4.gmail-smtp-in.l.google.com. Escape…
Amir Hossein
  • 249
  • 2
  • 4
  • 14
18
votes
3 answers

Windows automate telnet

I would like to run a set of commands that would typically be run in telnet(from c#). For example I would like to run the following using System; using System.Diagnostics; namespace InteractWithConsoleApp { class Program { static…
Lime
  • 13,400
  • 11
  • 56
  • 88
18
votes
5 answers

No such host is known socket connection

I'm trying to work with this library for telnet connections. I have called the function correctly and it executes the code below but fails giving the following error: System.Net.Sockets.SocketException was unhandled HResult=-2147467259 …
Kyle
  • 2,339
  • 10
  • 33
  • 67
18
votes
1 answer

Accessing CouchDB Futon on a remote server

I've installed CouchDB on a remote server that I have access to through a terminal telnet/ssh client. The server is running on CentOS6. I really want to be able to work with Futon, but I cannot at the moment because I can only open localhost:5984 in…
user1163278
  • 411
  • 6
  • 20
17
votes
3 answers

How to implement a command history on a telnet client? (up/down arrows)

I have a server that accept telnet connections for management. I miss the command history so I want to make my telnet session support it. My questions: 1) Do I have to implement that on the server side, so the server will send the past commands to…
chrisapotek
  • 6,007
  • 14
  • 51
  • 85
17
votes
4 answers

telnet connection using PHP

I need to write a PHP script to telnet to a router, run a command and fetch the results. does anyone know a telnet connection library in PHP? Update: This request (as is obvious) was for a long time ago. In the end I had to write the client library…
farzad
  • 8,775
  • 6
  • 32
  • 41
17
votes
4 answers

Looking for Java Telnet emulator

I am writing a back end program that telnets into a server, runs some commands and saves all the output from those commands. Something just like Expect. I would like to use an open source solution that is well supported and runs with JDK 6. I…
Ben
  • 2,771
  • 6
  • 33
  • 45
16
votes
9 answers

Multiple simultaneous network connections - Telnet server, Python

I'm currently writing a telnet server in Python. It's a content server. People would connect to the server via telnet, and be presented with text-only content. My problem is that the server would obviously need to support more than one simultaneous…
SpleenTea
  • 721
  • 2
  • 6
  • 6
16
votes
5 answers

Send data over telnet without pressing enter

I've recently started messing around with Java sockets and telnet... I want the user to be able to connect to the server, just type a letter and have it sent to the server, without pressing enter to send it. I'm sure there's no way for the server to…
Matt
  • 11,157
  • 26
  • 81
  • 110
16
votes
3 answers

Can not use command telnet in git bash

I try to use the command telnet in Git Bash, but it shows this error: bash:telnet: command not found My operating system is Windows 10. Any idea is appreciated.
Adam Lyu
  • 431
  • 1
  • 5
  • 17
16
votes
4 answers

how to feed a file to telnet

trying to understand http and headers i was playing around with telnet to send requests. to not type everything again and again and again i thought i'd write a small textfile with all the commands i need. my file is as simple as follows: GET…
knittl
  • 246,190
  • 53
  • 318
  • 364
16
votes
2 answers

How to insert a delay between pipelining commands in a bash script. E.g. cat file | telnet mail.domain.com 25

I have a bash script that creates a file and I would like to send an email at the end via telnet. However sometimes it will execute and sometimes it won't. The command at the end is cat tempfile | telnet mail.domain.com 25 At the receiving server…
gabtzi
  • 573
  • 3
  • 8
  • 24
15
votes
6 answers

Auto exit Telnet command back to prompt without human intervention ^] quit close exit code 1

I'm running telnet command on a host for a given port (which is open), it returns 0 (success). For trying telnet manually, I type the following command, then I press control+bracket i.e. ^], then press Enter key, then I get to telnet> prompt, where…
AKS
  • 16,482
  • 43
  • 166
  • 258