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
2 answers

Is there any way to put a variable inside telnet command in python?

is there any way to put the variable posorprom inside the telnet command in python? Here is a peace of my code: posorprom = prom tn.write(b"ls /mnt/flash/prom | wc -l\n") i want to put the variable posorprom inside the command, so i already tried…
Mario
  • 1
  • 1
0
votes
1 answer

Run a gui based application on a remote Linux machine using telnet

I need to run a gui-based application on a remote PC to which I am connected over telnet. The remote PC runs Linux Ubuntu 18.04 To figure out the screen, I run the following command on the remote machine: echo $DISPLAY which gave me :1 as…
Alexis
  • 576
  • 1
  • 10
  • 29
0
votes
1 answer

talking to a nested telnet connection perl

I've the following requirement: 1) telnet to machine x on telnet port. 2) once you are in machine x, telnet to machine y on a different port. 3) now issue the commands to machine y and get the output. I cannot use expect on both these machines. How…
BoCode
  • 847
  • 4
  • 17
  • 33
0
votes
0 answers

Connection test working on netcat but not on telnet

I am doing a connection test from a pod in kubernetes using netcat and telnet and the test from netcat is working fine and not from telnet. The pod runs a nodejs container and the connectivity from nodejs application is also failing. telnet from…
Teja
  • 57
  • 1
  • 6
0
votes
1 answer

NodeJS (Express + PUG) MVC Port Checker

I am working on my local project for checking availability of applications by checking the port response status. I've already coded the solution on my own, however it's not working as I expect so I found some code here on forum. Let me quickly…
hapvlz
  • 25
  • 5
0
votes
2 answers

Python and Windows 10: 'telnet' is not recognized as an internal or external command, operable program or batch file

I'm close to loosing my mind here. I can't get telnet running when launched from a python script. I'm running on a newly installed windows 10. When I run this script: import subprocess cmdline = "telnet 172.19.52.34" rc = subprocess.call("start cmd…
0
votes
1 answer

can Telnet via SSH log into email server? am getting auth error

I am using Telnet on an Ubuntu 18.04 Server being accessed via SSH. I log into the email server being set up that uses PostFix and DoveCot, to test if the "phil@xxxxxxx.com" mail account is working. This is the exchange: root@xxxxxxx:/var/log#…
Phil Freihofner
  • 7,645
  • 1
  • 20
  • 41
0
votes
0 answers

Script allowing me to telnet to several IP clocks at once to issue one command

I am not a script guy, actually have never written a script before. I work in a large warehouse where there are dozens of IP clocks mounted all over the place. If we loose power, or sometimes just out of the blue, the clocks loose their time. I have…
0
votes
0 answers

What is an optimal and easy way to check telnet session still connected in Python?

I have device from which I need parse telnet log. My system consists from two scripts: autologin.sh (this is expect script which auto connect to telnet server) telnet-parsing.py (this is python script which parse incoming data) This two scripts…
0
votes
1 answer

How to send multiple lines of information to telnet/AS400 host and read resulting screen in structured format in Java

I am trying to develop a Java program which can send multiple lines of information to a telnet/AS400 host, then receive the resulting screen in a structured format. An example of this may be login credentials (user, pass, library, etc). With…
ghDev
  • 170
  • 1
  • 12
0
votes
1 answer

Can you connect to AS400 through Apache TelnetClient in Java?

I am trying to connect to AS400 using the TelnetClient from Apache in Java. The goal for now is to simply connect and read the screen line by line and display each line. I will focus on input and interaction later. When I connect via telnet, my…
ghDev
  • 170
  • 1
  • 12
0
votes
1 answer

NodeJS Cannot receive data from telnet socket after writing to it

when I connect I get the initial data as if I opened the telnet manually from the CMD, but I'm trying to send a command and it doesn't seem to be working as it's not logging the data. I looked everywhere and I'm not sure what to do. Here is the code…
0
votes
1 answer

Docker : How to know if mongo is running using shell script file in Alpine/node

I am working on a MEAN STACK application which is deployed using docker. The docker-compose.yml file contains two services one is for Angular and express and another for mongoDB. Inside docker-compose.yml file : version: '2' # specify…
programoholic
  • 4,830
  • 5
  • 20
  • 59
0
votes
2 answers

Buffered Reader returns unexpected character from user input

I have a multi-chat server client program and I am attempting to get input from a client in a telnet putty window. The prompt: String login = "2-Enter Username and a password:"; clientoutput.write((login).getBytes()); The user input: This…
dancingbush
  • 2,131
  • 5
  • 30
  • 66
0
votes
1 answer

Text from Outputstream rendering randomly on a CMD / Putty telent window

I am having an issue with the text output alignment from an Outputstream to a telnet session hosted in CMD, and I've also had same issue using Putty. In summary I have a multi chat client project, where each client communicates with the server…
dancingbush
  • 2,131
  • 5
  • 30
  • 66