Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [telnet]

The tag has no usage guidance.

2
votes
1answer
25 views

how do I tab in telnet when executing it on remote host by ssh?

How can I use tab when I use telnet on a remote host by ssh, I have something like: ssh -o StritHopstKeyChecking=no -p port user@hostA telnet hostB; echo "Reconnect?"; while read < /dev/tty; do ...
13
votes
4answers
3k views

What happens if I start too many background jobs?

I need to do some work on 700 network devices using an expect script. I can get it done sequentially, but so far the runtime is around 24 hours. This is mostly due to the time it takes to establish a ...
0
votes
0answers
65 views

FTP LIST command hangs in passive mode

Entered ftp server with anonymous credentials, and got the response that I logged in successfully 230 Login successful. Want to list all files in current directory, issued LIST command, the server ...
1
vote
0answers
30 views

How can I run a script on a Unix box without enough space to store it?

Specifically what I'd like to do is run screenfetch on my router, just for fun. Here's my disk space free: admin@RT-N66W:/tmp/home/root# df Filesystem 1K-blocks Used Available Use% ...
2
votes
2answers
135 views

Setting variable output from timeout

I'm trying to automatically query a status via telnet (this isn't something I'm able to work around in this case). The idea is to grep for something and assign the result to a variable, to pass to a ...
0
votes
1answer
29 views

How does a telnet BBS work?

I know that telnet is an insecure remote login application compared to ssh. I turn on the telnet service on my VPS and succeed logging into it with telnet. So telnet is for remote login, but how ...
0
votes
1answer
31 views

Can I test telnet connectivity FROM multiple machines TO multiple machines, via a script?

I have 10 source machines and 10 destination machines. Each of those source machines need to connect to each of those destination machines. I wrote a shell script which tests the telnet connectivity ...
0
votes
0answers
21 views

writing data out to already opened port

I have a setup in which one unix program (s51 from a microcontroller simulation package) is a server tied to a specific port. Let's call the port 111. I also have setup a client on the same computer ...
0
votes
1answer
16 views

VPS telnet 80 strange response

From my PC, I test a telnet connection to my VPS HOST (used from 2 php little websites) and I get a curious website response : plays-slot.com So my question Why ? Is it pirated ? telnet 193.XXX.XXX....
1
vote
1answer
200 views

Downloading File Using Telnet

I'm trying to download a file, https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe or https://www.7-zip.org/a/7z1806-x64.exe, without using curl or wget; rather, I want to download the file by ...
-1
votes
1answer
785 views

Telnet returns Name or service not known [closed]

I'm trying to telnet from Centos 7 to Centos 6.8 on port 1521: #telnet 192.168.1.100 1521 And I get the following error telnet: 192.168.1.100:1521: Name or service not known 192.168.1.100:1521: ...
1
vote
3answers
304 views

Checking server is listening without telnet, from CLI?

Typically an easy diagnostic approach to checking an application server is running is to run telnet again the host and port: telnet somehost port The issue is that some operating systems, such as ...
3
votes
1answer
193 views

Virtual tty client for network telnet/RFC2217 server?

I have network device that serves up a telnet/RFC2217 (virtual serial port) interface. On Linux, how do I create a virtual tty that connects to this thing? If I understand correctly, socat doesn't ...
0
votes
0answers
14 views

Can't connect to OpenLDAP

i have installed iRedMail with OpenLDAP managing the Mail Accounts. So far that works. Now I wan't to connect other applications to that LDAP and I'm trying to use a LDAP Explorer "LDAP Admin" for ...
1
vote
0answers
31 views

getting issue when I try to connect with NASL localhost [closed]

when I'm trying to connect with NASL using telnet, the connection is getting closed. here is the command and the response which I got. ubuntu-64-sumit@ubuntu-64-sumit:~$ telnet 192.168.20.8 80 Trying ...
0
votes
1answer
291 views

Get HTTP header response with telnet in shell script using a proxy

I need to get the http header response from a server (google) with telnet, as i don't have curl or wget in my busybox environment. Also, I'm behind a proxy. So on the command line I can successfully ...
1
vote
2answers
467 views

Telnet connection stops bash script

I have a bash script where I continuously read from a text file the hosts and port and create a connection to check for the status. My code is: while IFS=";" read -r host ports do eval "arr=($...
0
votes
1answer
36 views

Test for network connectivity from various hosts to one specific host via ssh and telnet

I am trying to see if a port is opened for a list of hostnames/IP's, and I used a simple script like this one to ssh to each host and capture the output. for i in `cat $1` do ssh $i "sleep 5 | telnet ...
0
votes
2answers
186 views

Extract continuous information from telnet client

I have an industrial sensor that via an Interface module provides raw values via telnet. In order to connect to it: telnet 169.254.168.150 10001 I can only see garbage values from it. ...
23
votes
6answers
5k views

What are the alternatives for checking open ports, besides telnet?

We can use the following in order to test telnet VIA port; in the following example we test port 6667: [root@kafka03 ~]# telnet kafka02 6667 Trying 103.64.35.86... Connected to kafka02. Escape ...
1
vote
1answer
566 views

interactive SMTP command using telnet via a shell script

I'm trying to access a SMTP remote server thru a remote shell using telnet and a command file command.txt containing command to send to that SMTP server as seen on https://tecadmin.net/ways-to-send-...
0
votes
2answers
75 views

Telnet - how to verify why a port is blocked?

We have linux machines with RedHat 6.5 operating system. When we try to telnet to localhost on port 8182, we get connection refused: service iptables status Firewall is not running telnet localhost ...
-2
votes
1answer
1k views

How to Install telnet through a file?

I need to install telnet in a remote server (Centos 7), but when I use yum install, the process is stuck in finding mirrors (probably because the server lacks accessibility). I had the same problem ...
0
votes
1answer
40 views

Redirect output without telnet information to file

I am trying to download a binary file from an HTTP server with GNU Telnet, a tar archive to be exact. I can currently download regular files, but I can't properly redirect the output to a file. The ...
4
votes
0answers
1k views

Accessing regular linux commands in Huawei's Dopra Linux

Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping ...
1
vote
0answers
23 views

hide results that echo in if conditional [duplicate]

I have the next script: host=$1 port=23 user= <user> pass="<pass>" cmd1='show int descrip | i TRUNK|BBONE' #cmd2=exit ( echo open ${host} sleep 1 echo ${user} sleep 1 echo ${pass} sleep ...
-1
votes
1answer
343 views

What is the relation between test results of ping and telnet?

Is it correct that if ping host fails, telnet host port will fail too. But not vice versa. i.e. if telnet host port succeeds, ping host will succeed too. But not vice versa. Thanks.
-3
votes
1answer
180 views

Does Telnet client work without Telnet server?

On my Ubuntu, I can run the following commands, and get HTTP response telnet www.ietf.org 80 GET /rfc.html HTTP/1.1 Host: www.ietf.org I heard that Telnet protocol is insecure, so is it correct that ...
1
vote
1answer
129 views

Ubuntu Telnet problem

I have a problem with Ubuntu 14.04. I am a student of microcomputer systems and networks. I have a virtual machine running Ubuntu 14.04 and when trying to connect to localhost with telnet, the ...
-1
votes
1answer
1k views

Unable to telnet to a server

Here are 2 servers 192.168.0.12 192.168.0.21 there is a service running in 50070 port in server 192.168.0.12 when I do telnet from 192.168.0.21 server it fails: $telnet 192.168.0.12 50070 Trying ...
0
votes
1answer
56 views

Telnet connection Procurve switch

Im writing a script to get a dump of the Procurve switch-settings I start the script like this: ./script.sh | tee /home/user/telnet.log Here the Script #!/usr/bin/expect -f set timeout 20 set ...
2
votes
2answers
1k views

telnet doesn't prompt “Connection closed by foreign host.” when connection is cut off

I am working with a embedded linux unit, here's my situation: I use my computer(Ubuntu 16.04 machine) to telnet onto a unit issuing reboot command, then the unit reboots successfully. Here comes ...
1
vote
2answers
1k views

How can I detect if telnet is running on a server?

I have a digital scope, with LAN connection. I'd like to check if telnet is running on the scope (the manual doesn't say so, but then the manual doesn't offer anything useful about the LAN port). I ...
3
votes
1answer
1k views

How can i allow traffic coming at specific Port in IPtables Rules

I have centos7 running in 2 VM's. firewall is running on both VM machines. Suppose some application is running on machine A which is using 5044 port. and i have another machine called machine B who ...
0
votes
1answer
528 views

Quitting telnet on Linux

Standard escape character is CTRL-] on telnet. https://superuser.com/questions/398/how-to-send-the-escape-character-on-os-x-terminal/427#427 says that on Hungarian keyboard it is CTRL-5. On my ...
1
vote
2answers
1k views

How do I stop a telnet session from timing out?

I connect to a Cisco router using telnet. The connection times out every 3 minutes. How do stop my telnet session from getting disconnected from the router due to a timeout. I understand that ...
0
votes
0answers
315 views

scripting with telnet and tee

with #!/bin/bash telnet ipaddr port & i=1 while [ "$i" -lt 3 ] do (( i += 1 )) sleep 10 done result: Trying ipaddr... Connected to ipaddr. Escape character is '^]'. ...
10
votes
1answer
503 views

Why can I access a server by a partial IP address?

In my network I have a server known by the IP address 10.0.0.15. By accident, I discovered that the command: ping 10.0.15 results in 64 bytes from 10.0.0.15: icmp_seq=1 ttl=64 time=9.09 ms ...so the ...
-1
votes
2answers
201 views

How to cancel delay in telnet connection? [closed]

I am using telnet on my Linux machine to connect to the PCU2 Service Terminal of a Flexi Base Station Controller. There was some sort of problem with it, so my telnet connections were refused ...
1
vote
1answer
695 views

Find the telnet-server in CentOS7.2

I use yum installed telnet-server in my CentOS-7.2: yum install -y telnet-server The above prints: Downloading packages: telnet-server-0.17-64.el7.x86_64.rpm ...
1
vote
1answer
10k views

Verbose mode for telnet

Is there a way to increase verbosity for the telnet command? man telnet does not show any -v or -vv options.
1
vote
1answer
194 views

Damn-Small-Linux telnet server freezes

I'm using Damn Small Linux (or "DSL") (which is based "non-purely" on Debian - I have access to apt-get) in a Virtual Machine. I installed telnet server (telnetd + xinetd). I'm also running another ...
2
votes
3answers
17k views

Telnet connection had been closed by a foreign host

The client PC IP: 10.49.46.5/24 and the server PC IP: 10.49.46.2/24 are two computers linked to the same network. When I try to create an interactive communication between these two computers using ...
1
vote
0answers
43 views

CENTOS:Problems accesing to a remote machine port

I was trying to access to a specified port of remote machine from my CENTOS machine and I am not able to connect. If I write telnet remote_machine 666 I have no response. The client machine is a ...
0
votes
1answer
372 views

Linux telnet client with multiline support

I need to post data like this to an open telnet { "context" : "50EF2767", "data" : { "user_status" : "invisible" }, "command" : "setStatus" } The data is multiline. I cannot copy-paste ...
2
votes
1answer
1k views

Cannot telnet to listening port and firewall rules

I am trying to telnet to a host on port 50000, which I verified that is listening to a DB2 instance (db2inst1). telnet [host] 50000 telnet [ip_adress] 50000 But it gave the error: Connection ...
6
votes
4answers
7k views

Openssl command s_client always says 400 Bad Request

I am trying to test a server that is working normal in web browser, with openssl s_client option, connecting it directly using openssl returns the 400 Bad Request: openssl s_client -servername ...
2
votes
1answer
130 views

What services accept tcp connection?

I've been learning about socket programming recently, and am just beginning learning about tcp/ip sockets. My study material gives an example of connecting to the localhost daytime service by running ...
1
vote
0answers
835 views

add timestamp at begining of each line in telnet session

I want to log a Telnet session with timestamp on each output line. I tried telnet machine_IP_address | ts '[%Y-%m-%d %H:%M:%S]' but when I have to enter login/password, it does not work. Any idea?
1
vote
0answers
61 views

How can I simulate a ssh session on a client behind a NAT? [duplicate]

Quick question: How can I simulate a ssh session, that I can use to run commands on a client behind a NAT, that uses only program installed by default on most operating systems (telnet...). Long ...