Networking Forums

Networking Forums > Computer Networking > Linux Networking > How can I suppress the negotiations between the telnet server and theclient?

Reply
Thread Tools Display Modes

How can I suppress the negotiations between the telnet server and theclient?

 
 
mituag
Guest
Posts: n/a

 
      06-17-2008, 10:19 AM
I have a linux device on which telnetd server is running.
When I connect to this device through the windows command prompt I see
that there are some negotiations going on between the server and the
client.

Once the negotiations are done I see a "login" at the prompt.

Now, when I try to connect to the same device through my application,
I do not see the login prompt as the server is waiting for some
response. But currently there is no implementation in my application
to respond to the server to carry out the negotiations.

How can I suppress these negotiations?
Is there any option in telnetd which can be set on the device which is
running the telnet server so that we can skip the negotiations?
 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      06-17-2008, 12:22 PM
On 2008-06-17, mituag <(E-Mail Removed)> wrote:
>
>
> I have a linux device on which telnetd server is running.
> When I connect to this device through the windows command prompt I see
> that there are some negotiations going on between the server and the
> client.
>
> Once the negotiations are done I see a "login" at the prompt.
>
> Now, when I try to connect to the same device through my application,
> I do not see the login prompt as the server is waiting for some
> response. But currently there is no implementation in my application
> to respond to the server to carry out the negotiations.
>
> How can I suppress these negotiations?
> Is there any option in telnetd which can be set on the device which is
> running the telnet server so that we can skip the negotiations?


Read the RFCs about telnet protocol, or use the Linux telnet client, or
use ssh...
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      06-17-2008, 04:08 PM
On Jun 17, 3:19*am, mituag <mit...@gmail.com> wrote:
> I have a linux device on which telnetd server is running.
> When I connect to this device through the windows command prompt I see
> that there are some negotiations going on between the server and the
> client.
>
> Once the negotiations are done I see a "login" at the prompt.
>
> Now, when I try to connect to the same device through my application,
> I do not see the login prompt as the server is waiting for some
> response. But currently there is no implementation in my application
> to respond to the server to carry out the negotiations.
>
> How can I suppress these negotiations?
> Is there any option in telnetd which can be set on the device which is
> running the telnet server so that we can skip the negotiations?


If you want to connect to a telnet server, your application has to be
a telnet client.

Spend the five minutes to write a simple 'refuse everything, ask for
nothing' responder to telnet options.

DS
 
Reply With Quote
 
mituag
Guest
Posts: n/a

 
      06-18-2008, 03:01 AM
On Jun 17, 9:08 pm, David Schwartz <dav...@webmaster.com> wrote:
> On Jun 17, 3:19 am, mituag <mit...@gmail.com> wrote:
>
> > I have a linux device on which telnetd server is running.
> > When I connect to this device through the windows command prompt I see
> > that there are some negotiations going on between the server and the
> > client.

>
> > Once the negotiations are done I see a "login" at the prompt.

>
> > Now, when I try to connect to the same device through my application,
> > I do not see the login prompt as the server is waiting for some
> > response. But currently there is no implementation in my application
> > to respond to the server to carry out the negotiations.

>
> > How can I suppress these negotiations?
> > Is there any option in telnetd which can be set on the device which is
> > running the telnet server so that we can skip the negotiations?

>
> If you want to connect to a telnet server, your application has to be
> a telnet client.
>
> Spend the five minutes to write a simple 'refuse everything, ask for
> nothing' responder to telnet options.
>
> DS


Yes that is one possible way.
But since we do not want to get into the implementation of telnet
protocol we are not doing that.
Wont that require complete knowledge on the telnet protocol? Currently
we just use telnet as means of accessing the device and loading
software/changing few settings on the device.

We have another device which is linux based and runs a telnet server.
When we connect to this we see that there are no negotiations
whatsoever either from windows telnet client or from the application
which I have developed.

The config of this device is

ViBE 61just a name/type of the device)
Linux localhost 2.4.20-rthal5-TRACE #7 Thu Aug 24 09:44:01 CEST 2006
ppc

And the config of the device which carries out the negotiations is

XMU-64just a name/type of device)
Linux y 2.6.17.1-XMU_FIRM_01.00.004_CG #1 SMP Wed Jan 3 16:01:00 CET
2007 i686
686 i386 GNU/Linux

Mitesh


 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      06-18-2008, 03:14 AM
On Jun 17, 8:01*pm, mituag <mit...@gmail.com> wrote:

> > Spend the five minutes to write a simple 'refuse everything, ask for
> > nothing' responder to telnet options.


> Yes that is one possible way.
> But since we do not want to get into the implementation of telnet
> protocol we are not doing that.


Then you can't talk to a telnet server. Telnet servers, by definition,
speak the telnet protocol. If you don't implement the telnet protocol,
you are not a telnet client. If you are not a telnet client, you will
not be able to speak properly to a telnet server.

> Wont that require complete knowledge on the telnet protocol? Currently
> we just use telnet as means of accessing the device and loading
> software/changing few settings on the device.


We're talking about *four* commands. It's literally five minutes work.
It would take less time to implement the protocol than to argue about
whether or not you need to.

However, the person who implements your telnet server or client
capability should have a reasonable knowledge of the telnet protocol.
Would you let a person not familiar with the HTTP protocol write a web
server or a browser? That would be really silly.

> We have another device which is linux based and runs a telnet server.
> When we connect to this we see that there are no negotiations
> whatsoever either from windows telnet client or from the application
> which I have developed.


Then on what basis did you conclude that it runs a telnet server? If
you see no telnet option negotiations, how did you determine that the
telnet protocol was being spoken?

Perhaps you are being mislead by the fact that most 'telnet' clients
speak protocols other than the 'telnet' protcol. The 'telnet protocol'
is in fact a real protocol and includes things like controlling line
mode or character mode, echo, binary or text modes, and a few other
things.

You can simply ask for nothing and refuse everything. To get a bit
fancier, you can add a simple list of things you wish to ask for or
accept. The implementation can be miniscule. Ask for all the things
you are configured to ask for on initial setup. If offered something,
accept it if it's no the accept list, otherwise refuse it. That's it.

DS
 
Reply With Quote
 
Fred Weigel
Guest
Posts: n/a

 
      06-19-2008, 02:21 AM
mituag <(E-Mail Removed)> wrote:
> On Jun 17, 9:08 pm, David Schwartz <dav...@webmaster.com> wrote:
>> On Jun 17, 3:19 am, mituag <mit...@gmail.com> wrote:
>>
>> > I have a linux device on which telnetd server is running.
>> > When I connect to this device through the windows command prompt I see
>> > that there are some negotiations going on between the server and the
>> > client.

>>
>> > Once the negotiations are done I see a "login" at the prompt.

>>
>> > Now, when I try to connect to the same device through my application,
>> > I do not see the login prompt as the server is waiting for some
>> > response. But currently there is no implementation in my application
>> > to respond to the server to carry out the negotiations.

>>


Why not just open the telnet client with a pty? No need to suppress any
negotiations, etc.

If you don't want to do a pty, use "expect" (though I think that's a bit
harder). Writing the pty code (or cribbing from the 'net) gives you a
component that can be reused. Plus, if ever you decide to use a
different transport, it will be a lot easier (ssh for example).

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
following wpa_supplicant negotiations. Unruh Linux Networking 2 06-30-2008 07:19 PM
Enable root access to telnet with krb5-telnet Phoe6 Linux Networking 2 06-08-2007 11:00 AM
Allowing NET USE commands on Windows 2003 Server TELNET Server Paul O Windows Networking 2 03-07-2007 12:36 PM
suppress a certain SSID Steffen Meier Wireless Networks 4 07-17-2006 03:45 PM
VPN setup Hel--L2TP Security Negotiations times out asdf Windows Networking 0 04-02-2006 11:10 PM



1 2 3 4 5 6 7 8 9 10 11