Sponsored Content
Full Discussion: how to use telnet
Top Forums UNIX for Dummies Questions & Answers how to use telnet Post 3715 by loitschix on Tuesday 10th of July 2001 09:23:43 AM
Old 07-10-2001
telnet...

hi.

it`s no problem to use telnet. syntax:

telnet <name-of-machine-to-connect>

there are a few additional options:

-l <user> connects to the machine with a special username
-n <file> makes a file that traces your telnetsession

all other options like -c -d -8 -e -E -L -n i normaly don`t use, but you can read at the man-page section ("man telnet").

example:

you wanna connect to host "hugoland" as user "hugo", but you are user "root" on your machine. type:

telnet -l hugo hugoland

there is another interresting thing to know: normaly telnet connects automatic to port 23. this is defautl-tcp/ip standard. but when you wanna connect to another port (like 2031) type

telnet -l hugo hugoland 2031

this is the "client side" of telnet. now some words about the "server side".

if you wanna have a machine (server) to allow someone connect to your server per tlent, you have to run a telnet-daemon. this examples are from sun solaris 8, but normaly it`s nearly the same on hp-ux and aix.

the telnet server is controled by the "master-process" of all net-services "inetd". in the /etc/inetd.conf there are entrys for all services the "inetd" habe to serv/control. when you wanna enable/disable the telnet-service (from serverside!) comment/uncomment the line in the /etc/inetd.conf and restart the "inetd" (kill -1 <proc-id od inetd>)

on secury systems root is denied to login per telnet or ftp. this is defined in the /etc/default/login (on sun solaris) and/or in the /etc/ftpusers.

o.k., hope this helps,
cheers, alex...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

telnet

Hi All, I have written a script called findwho.sh findwho.sh in Development Server ======== who -M>x I want to copy the file findwho.sh into Production Server and run this script on it then output file x copy back to the Development Server 1) Every time ftp findwho.sh to... (4 Replies)
Discussion started by: krishna
4 Replies

2. Shell Programming and Scripting

telnet

Now my task is there are two servers A and B. i only can put unix script in server A and database is on server B. can I write a script in serer A which could telnet to server B and run the script which include sql script and save the output file in server A. did I make my problem clear? (2 Replies)
Discussion started by: YoYo
2 Replies

3. Programming

telnet

hello sir and all my friends i have a serious problems in creating a telnet protocol with c-program in unix. if any one have this program then please reply me on this mail address. email address removed (4 Replies)
Discussion started by: abhijit deka
4 Replies

4. AIX

Telnet and su -

I have some AIX 4.3 machines which have disabled root telnet access. When you run su - once logged on the machine requests a password and if one is supplied correctly it asks for another users password. How do I configure this? Any help is appreciated. Thank you (0 Replies)
Discussion started by: uXion
0 Replies

5. SCO

Telnet

Hello. How can I limit the number of telnet connections in order that from the same IP address it can support at the maximun two simultaneus meetings on SCO Openserver 5.0.7 ? Thanks. (2 Replies)
Discussion started by: jag
2 Replies

6. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

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

7. UNIX for Dummies Questions & Answers

Automatically login in the telnet from present telnet

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

8. UNIX for Dummies Questions & Answers

Difference Between Krb5-telnet And Ekrb5-telnet

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

Telnet

Hi, Need some help on exiting the telnet session from the script. #!/bin/ksh telnet <ip> it would print some text and it would ask for a username and pwd. I jus need to capture the text and i need to come out of the telnet session. is it possible without expect ? (6 Replies)
Discussion started by: giri_luck
6 Replies

10. IP Networking

Telnet

Hey everyone. Something has been bothering me. The telnet program, while I know is insecure, offers a ton of functionality. I can literally test any port's availability. I can send commands to web servers, and email servers, and it's a great toubleshooting tool. can any of this be done with SSH?... (6 Replies)
Discussion started by: Lost in Cyberia
6 Replies
TELNETD(8)						      System Manager's Manual							TELNETD(8)

NAME
telnetd - DARPA TELNET protocol server SYNOPSIS
/usr/libexec/telnetd DESCRIPTION
Telnetd is a server which supports the DARPA standard TELNET virtual terminal protocol. 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(5)). Telnetd operates by allocating a pseudo-terminal device (see pty(4)) for a client, then creating a login process which has the slave side of the pseudo-terminal 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, and to receive terminal type 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 pseudo-terminal allocated to the client is configured to operate in "cooked" mode, and with XTABS and CRMOD enabled (see tty(4)). Telnetd is willing to do: echo, binary, suppress go ahead, and timing mark. Telnetd is willing to have the remote client do: binary, ter- minal type, and suppress go ahead. SEE ALSO
telnet(1C) BUGS
Some TELNET commands are only partially implemented. The TELNET protocol allows for the exchange of the number of lines and columns on the user's terminal, but telnetd doesn't make use of them. Because of bugs in the original 4.2 BSD telnet(1C), telnetd performs some dubious protocol exchanges to try to discover if the remote client is, in fact, a 4.2 BSD telnet(1C). Binary mode has no common interpretation except between similar operating systems (Unix in this case). The terminal type name received from the remote client is converted to lower case. The packet interface to the pseudo-terminal (see pty(4)) should be used for more intelligent flushing of input and output queues. Telnetd never sends TELNET go ahead commands. 4.2 Berkeley Distribution November 16, 1996 TELNETD(8)
All times are GMT -4. The time now is 05:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy