telnet interview questions
Top telnet frequently asked interview questions
I'm looking for a C# library that provides access to both SSH and Telnet under the same interface. What would be a good choice?
Source: (StackOverflow)
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 the client and then the client can re-execute?
2) Is there anyway to implement this functionality in the telnet client (not messing with the server) ?
If answer is 1) then I need to know how to capture and send the up and down arrow keys on my telnet session without having to press enter.
Source: (StackOverflow)
What is the difference between cscript and wscript? Which is best for doing Telnet and FTP automation in Windows?
Source: (StackOverflow)
HI,
I have a device that exposes a telnet interface which you can log into using a username and password and then manipulate the working of the device.
I have to write a C program that hides the telnet aspect from the client and instead provides an interface for the user to control the device.
What would be a good way to proceed. I tried writing a simple socket program but it stops at the login prompt. My guess is that i am not following the TCP protocol.
Has anyone attempted this, is there an opensource library out there to do this?
Thanks
Addition:
Eventually i wish to expose it through a web api/webservice. The platform is linux.
Source: (StackOverflow)
I want to know if it's possible to telnet on a certain port of an Android phone connected via USB. I've seen that if I telnet localhost:5556, I go to the emulator.
Could I do something similar when I connect a physical device? Which commands could be handled?
Source: (StackOverflow)
What could be the maximum number of concurrent Clients (using different port number) that could communicate to a Server on the same port (Single socket) ? What are the factors that could influence this count ? I am looking for this information w.r.t telnet in Linux environment.
Source: (StackOverflow)
I am trying to connect to TOR via telnet in my terminal on my mac osx and to request new identity, but it is not working, I always get this error message:
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
I am using this telnet command for the connection:
telnet 127.0.0.1 9051
And idea why is this not working?
thx
Source: (StackOverflow)
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 set this up, but maybe telnet has a parameter or something which could allow this?
Maybe if I got the user to type stty cbreak
or stty raw
before running telnet, this would work? (UNIX only, I know!)
If I can get telnet to do this then it saves me having to write a special client just for this feature...
Source: (StackOverflow)
When using telnet by using the command:
telnet <host ip> <port>
I can connect but then I cannot see what I am typing.
So I try:
telnet
set localecho
open <host ip> <port>
But this time it just hangs with the message:
Connecting to <host ip>...
How can I use telnet successfully after setting localecho?
Source: (StackOverflow)
How can I view the SSL certificate details that is being used on ports 587, 25, 110, 465, 995, 143 & 993
I need to check which domain name is being used to secure these ports.
I've search here and on google but can't find anything!
Source: (StackOverflow)
I've tried all day long to run the command telnet localhost 5554 in the cmd, but I didn't succeed. It keeps saying "telnet is recognized as an internal or external command... ". The directory is set to where my android sdk tools are installed (C:\Program Files\Android\android-sdk\tools). Maybe this path is not correct but I don't know what else to do. I have changed the path to other but no success. Please help me.
Thanks in advance.
Source: (StackOverflow)
I want to send a file from one Linux machine with IP suppose "192.168.2.25" to other Linux machine that's a server "192.168.2.110"
how can i do that by using Telnet command??
Source: (StackOverflow)
I'm looking for a quick and simple method for properly testing if a given TCP port is open on a remote server, from inside a Shell script.
I've managed to do it with the telnet command, and it works fine when the port is opened, but it doesn't seem to timeout when it's not and just hangs there...
Here's a sample:
l_TELNET=`echo "quit" | telnet $SERVER $PORT | grep "Escape character is"`
if [ "$?" -ne 0 ]; then
echo "Connection to $SERVER on port $PORT failed"
exit 1
else
echo "Connection to $SERVER on port $PORT succeeded"
exit 0
fi
I either need a better way, or a way to force telnet to timeout if it doesn't connect in under 8 seconds for example, and return something I can catch in Shell (return code, or string in stdout).
I know of the Perl method, which uses the IO::Socket::INET module and wrote a successful script that tests a port, but would rather like to avoid using Perl if possible.
Note: This is what my server is running (where I need to run this from)
SunOS 5.10 Generic_139556-08 i86pc i386 i86pc
Any help would be appreciated!
Source: (StackOverflow)
I am working on automating some telnet related tasks, using Bash scripts.
Once automated there will be no interaction of the user with telnet. (that is it will be totally automated)
the scripts looks something like this:
# execute some commands on the local system
# access a remote system with an IP address: 10.1.1.1 (for example)
telnet 10.1.1.1
# execute some commands on the remote system
# log all the activity (in a file) on the Local system
# exit telnet
# continue on with executing the rest of the script.
There are 2 problems I am facing here:
How to execute the commands on the remote system from the script (without human interaction)?
From my experience with some test codes, I was able to deduce that when the telnet 10.1.1.1 is executed, telnet goes into an interactive session and the subsequent lines of code in the script are executed on the local system. How can I run the lines of code on the remote system rather than the local one?
I am unable to get a log file for the activity in the telnet session on the local system. The stdout redirect I used makes a copy on the remote system (I do not want to perform a copy operation to copy the log to the local system). How can I achieve this functionality?
Source: (StackOverflow)