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
0
votes
0 answers

Could not connect to gmail smtp socket with java but telnet can reaches the socket

I'm trying to access gmail smtp socket with smtp.gmail.com:587 or smtp.gmail.com:465 with the following the code. It gives me "java.net.ConnectException: Connection refused: connect" error. When I try to reach the ports via Windows telnet client.…
0
votes
0 answers

Using jq to beautify output in terminal using telnet

Trying to use jq to beautify output in terminal in real-time using telnet I downloaded and installed jq on my mac and I executed a telnet code in the terminal to try and make the output readable telnet 192.168.31.2 8085 | grep -A 1 -e 'LOG DEBUG :…
0
votes
0 answers

Telnetlib write function missing a letter

I am writing a script on python that will connect to a telnet server and write some basic commands. The login part is working fine, so is the "show version" command, but when I write the "quit" command, it types "uit" into telnet. One thing that did…
Taha
  • 65
  • 1
  • 10
0
votes
1 answer

Use DKIM with SMTP TELNET CONNECTION

is there any why to use DKIM authentification with telnet smtp connection using these commands : Ehlo Mail From Rcpt-To Data QUIT Let's say that i have already the private and public key generated: The private key stored in a file in my server and…
ELYAS
  • 23
  • 5
0
votes
1 answer

Connecting to Serial->Ethernet converter box via Telnet, getting strange response (no matter what I send)

I'm trying to communicate with a device that has a Serial COM port that goes out (using RS232 Protocol), which I've hooked up to a converter box that converts the connection to Ethernet. I've successfully connected to the converter box (which has…
trotunno
  • 1
  • 1
0
votes
0 answers

Connecting to Java server with open localhost does not work

When I use MS telnet, I'm getting every character repeated WITHOUT CRLF but with OSX telnet, my input is not sent to server until I CRLF. So I found I can first open (MS) telnet and type set crlf but then when I try to open the connection, the…
chrips
  • 4,996
  • 5
  • 24
  • 48
0
votes
2 answers

How to use telnet in a script?

I need to connect in a system where I have to SSH first then telnet. Then I can start executing some command. I am struggling about the telnet part. Can you tell me how I can make it please? Is there another alternative than spawn please? Thank…
Mohamed
  • 11
  • 6
0
votes
0 answers

Java ServerSocket to Tell Telnet Client to Send Every Character Immediately

I'm attempting to capture an "up arrow" from clients connected to my socket where the client is using telnet to connect to my server. This would allow me to autofill command history of what the client user has used previously. In order to do this I…
Etep
  • 533
  • 7
  • 20
0
votes
1 answer

Using telnet command in script for send mail

I wanna send an email via a command in Centos7. I used 'telnet' command for this issue like this: I touch example.sh file and save these command inside it : echo "open mail.test.com 25" sleep 3 echo "mail from:sender@test.com" echo "rcpt…
BEHXAD
  • 43
  • 1
  • 6
0
votes
1 answer

How to redirect or retrieve the output of a telnet process ran by a Powershell script?

I am running a Powershell script that starts a telnet process which will connect on a client machine and run a command. The client machine's operating system is a personalized version of VxWorks, and the command I'm using on the telnet calls a tool…
Komputer
  • 51
  • 1
  • 16
0
votes
1 answer

Robot get output of Telnet.Execute Command inside a SSH connection

I'm trying to get the output of a Telnet.Execute Command my telnet connection is inside of a SSH connection. If I try ${saida}= SSHLibrary.Execute Command ls I can get the output of the ls command but if I try ${saida}= SSHLibrary.Execute Command …
vladwoguer
  • 951
  • 1
  • 14
  • 28
0
votes
1 answer

How to connect with sshd?

I need to connect my laptop (Mac OS) to my Virtual Box (Debian) via sshd and then test telnet in Debian. Problem is I can't seem to connect via sshd. I get sshd re-exec requires execution with an absolute path when I run sshd…
Mccoy
  • 27
  • 1
  • 4
0
votes
3 answers

How to build a centos7 docker image with a telnet server?

I'm trying to build a centos7 docker image with telnet server. But I don't know how to enable telnet server in it, because systemctl doesn't work in docker.
Traphix
  • 49
  • 5
0
votes
1 answer

Is there a way to get telnet session output as part of postman test scripts?

I want to test the Web API of a system which has also a CLI accessible via a telnet connection. The tests must verify that the response given to the API requests matches the output of commands given to the CLI. The problem is that as far as I know…
KingUnique
  • 25
  • 5
0
votes
1 answer

Socket remote connection problem C

I wrote a simple server application in C. This server do nothing except print the received message, then exit. Here is the code int listenfd,connfd,n; struct sockaddr_in servaddr,cliaddr; socklen_t clilen; char *mesg = (char*)…
alfred
  • 217
  • 1
  • 6
1 2 3
99
100