02-11-2013
Are you telnet'ing to the same host you are on? For two hosts, there is the local firewall, any intermediate firewall, any remote firewall, and the listener there. Does the IP exactly match the host name on both client and server DNS/hosts (usually you listen on 0.0.0.0 for all IPs, like 127.0.0.1 even if one NIC)?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using the shell script file to send mail by "mailx". I do this by cron job, there is no error found. But it is fail, any suggest to me?
How can I resend it automatically? Is there any resend logic by using the mailx? (3 Replies)
Discussion started by: adela
3 Replies
2. Ubuntu
Hi folks,
Ubuntu 7.04 server amd64
On running;
$ telnet localhost 106
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
$ netstat -an | grep 106
$ sudo netstat -an | grep 106
both no printout
Pls advise where shall I check and how to fix... (22 Replies)
Discussion started by: satimis
22 Replies
3. Shell Programming and Scripting
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies
4. Shell Programming and Scripting
I've a lot of file with an hyphen on filename, so I use rename for remove him ad substitute with an underscore but it fails
$ rename 's/\-/\_/' *
Unknown option: _
Unknown option: i
Unknown option: r
Unknown option: e
Unknown option: e
Unknown option: _
Unknown option: g
Unknown... (12 Replies)
Discussion started by: cv313x
12 Replies
5. AIX
This is a LPAR that i created earlier.
I want to set an IP address to en0 but it failed.
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
en0
devdbm01
inet0 changed
Method error (/usr/lib/methods/chgif):
... (8 Replies)
Discussion started by: wingcross
8 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password.
But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies
7. Shell Programming and Scripting
Hello,
I am stuck... i dunno why does my test fail... any idea ?
#!/bin/bash
dos2unix info.txt
Distor=Distributeur
LINE=$(cat info.txt | sed -n 1p)
echo $LINE
echo $Distor
echo ""
echo "123-$LINE-123"
echo "123-$Distor-123"
if ; then
LINE2=$(cat info.txt | sed -n 2p)
echo $Distor... (14 Replies)
Discussion started by: patx
14 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ?
Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies
9. Shell Programming and Scripting
Hi Team,
I my script i telent my node ip and after loging i run some commands...But some time login fail so i want to stop script at that time..
CONFIG_CHNG.sh
printf 'Please Input Node ID : '
read node
node="$node"
#exec > node_log_$node.log 2>&1
#set -x
>... (2 Replies)
Discussion started by: Ganesh Mankar
2 Replies
10. Forum Support Area for Unregistered Users & Account Problems
After inputted all required fields in registration page, the below message is shown and cannot go on.
A required field called Custom Date & Time Formats is missing or has an invalid value. (2 Replies)
Discussion started by: Unregistered
2 Replies
telnetd(8) System Manager's Manual telnetd(8)
NAME
telnetd - The DARPA telnet protocol server
SYNOPSIS
telnetd [-debug [port]] [-D modifier ...]
FLAGS
Starts telnetd manually, rather than through inetd, on alternate TCP port number port (if specified). Prints out debugging information.
modifiers are: Prints information about negotiation of telnet options Same as options with additional processing information Displays the
data stream received by telnetd Displays data written to the pty Not yet implemented
DESCRIPTION
The telnetd daemon is a server that supports the DARPA (Defense Advanced Research Projects Agency) standard telnet virtual terminal proto-
col. telnetd is invoked by the Internet server (see inetd(8)) normally for requests to connect to the telnet port as indicated by the
/etc/services file (see services(4)). The -debug flag may be used, to start up telnetd manually. If started up this way, port may be
specified to run telnetd on an alternate TCP port number.
The -D options may be used for debugging purposes. This allows telnetd to print out debugging information to the connection, allowing the
user to see what telnetd is doing.
The telnetd daemon operates by allocating a pseudoterminal device (see pty(7)) for a client, then creating a login process that has the
slave side of the pseudoterminal as stdin, stdout, and stderr. telnetd manipulates the master side of the pseudo-terminal, implementing
the telnet protocol and passing characters between the remote client and the login process.
When a telnet session is started up, telnetd sends telnet options to the client side, indicating a willingness to do remote echo of charac-
ters, to suppress go ahead, to do remote flow control, and to receive terminal type information, terminal speed information, and window
size information from the remote client. If the remote client is willing, the remote terminal type is propagated in the environment of the
created login process. The pseudoterminal allocated to the client is configured to operate in cooked mode, and with XTABS and CRMOD
enabled (see tty(7)).
The telnetd daemon is willing to do: echo, binary, suppress go ahead, and timing mark. telnetd is willing to have the remote client do:
line mode, binary, terminal type, terminal speed, window size, toggle flow control, environment, X display location, and suppress go ahead.
The telnetd daemon never sends telnet go ahead commands.
Note that binary mode has no common interpretation except between similar operating systems (Unix compatible systems in this case).
Note also that the terminal type name received from the remote client is converted to lowercase.
The telnet command uses the default Type-of-Service value recommended by RFC1060, which is as follows: Low delay
You can configure this value by specifying it in the /etc/iptos file. For more information, see iptos(4).
By default, the telnetd daemon starts the login dialog using the login string specified in the message field of the /etc/gettydefs file.
If you want to use a customized banner, create an /etc/issue.net or /etc/issue file. The telnetd daemon reads the file that exists and
writes its contents over a new telnet connection prior to starting the login dialog. If both files exist, only the /etc/issue.net file is
used.
CAUTIONS
Some telnet commands are only partially implemented.
Because of bugs in the original 4.2BSD telnet(1), telnetd performs some dubious protocol exchanges to try to discover if the remote client
is, in fact, a 4.2BSD telnet(1).
FILES
Specifies the command path. Specifies the path name for the network issue identification file. Specifies the path name for the issue
identification file.
RELATED INFORMATION
Commands: telnet(1).
Files: iptos(4), issue(4), issue.net(4). delim off
telnetd(8)