Telnet options in Unix


Recommended Posts

So when I try to telnet to my Mac, or another unix machine (jaguar.it.miami.edu) all i get is "???? ??#??'??$" instead of a login.

(btw a standard command window will telnet just fine, just the telnet i'm using thats built into this device comes up with ???? ??#??'??$)

Has anyone seen this before? Or know of a possible fix ?

Link to comment
https://www.neowin.net/forum/topic/266206-telnet-options-in-unix/
Share on other sites

Sounds like it might be something to do with your language settings and/or your term settings. What terminal type is the one you are using to telnet from? Is it vt100, xterm, ansi, something like that? And what language does your system use?

Basically try and be as specific as possible about the process (eg I am using an xterm on vector linux with termtype set to xterm, and using iso-8859-1 encoding, and i am using a standard telenet program to open a connection to a solaris machine with encoding set to utf8) The more info, the easier it is to help.

EDIT: just noticed you said the "telnet built into this device". What exactly is the device?

man I wish I knew all that stuff. The telnet is built into this contorller I'm using and I can't seem to find out the protocols it uses.

It is weird that it doesn't connect to the UNIX boxes (one is a Tru64 UNIX Version 4.0F(jaguar.it.miami.edu), and one is the Mac OS X 10.3 Unix/BSD or whatever it is)... If I telnet into a windows box, or anything other than these unix machines it works just fine...

  rezza said:
What exactly is this controller? Make/model number? Type of device? Other features?

585224702[/snapback]

Its an AMX NI-3000, its used for home automation/home theater component control and stuff. It's a neat box, if it would do telnet correctly... I'm calling AMX now to see if they can give me any info on thier version....

oh i changed the port from 23 to 21, and I'm able to use the ftp just fine... just not telnet...

OK, found some specs for the ni-3000, but its still not clear what terminal type it tries to conform to, nor what language encoding it uses.

Since this only happens when telnetting, I can only guess that its to do with the way the telnet service is set up on those two machines (the miami one and the OSX one). Do you have any others you could try? In fact, could you specify port 22, and try connecting to motoreffect.ath.cx? What does that give you, more gibberish?

ok I found something out:

the ni-3000 doesn't use the "telnet negotiation sequence" whatever that means...

anways, ssh doesn't work, all I get is

  Quote
SSH-2.0-OpenSSH_3.9p1

Protocol mismatch.

which is exactly what happens if you do "telnet 82.14.39.112 22" in windows....

know any comands for a "negotiation sequence "?

I really apreciate this

No, its not compatible with any telnet client, but it indicates that it can send readable characters to the client, and that's the info I was after.

Signs point to your client and the telnet servers not being compatible. Not sure what you can do about that, really...

converting that initial giberish to decimal gives me:

255,253,24,255,253,32,255,253,35,255,253,39,255,253,36

and if you look here: http://www.scit.wlv.ac.uk/~jphb/comms/telnet.html

there are all kinds of things:

Name	Decimal Code	Meaning
SE	240	End of subnegotiation parameters.
NOP	241	No operation
DM	242	Data mark. Indicates the position of a Synch event within the data stream. This should always be accompanied by a TCP urgent notification.
BRK	243	Break. Indicates that the "break" or "attention" key was hit.
IP	244	Suspend, interrupt or abort the process to which the NVT is connected.
AO	245	Abort output. Allows the current process to run to completion but do not send its output to the user.
AYT	246	Are you there. Send back to the NVT some visible evidence that the AYT was received.
EC	247	Erase character. The receiver should delete the last preceding undeleted character from the data stream.
EL	248	Erase line. Delete characters from the data stream back to but not including the previous CRLF.
GA	249	Go ahead. Used, under certain circumstances, to tell the other end that it can transmit.
SB	250	Subnegotiation of the indicated option follows.
WILL	251	Indicates the desire to begin performing, or confirmation that you are now performing, the indicated option.
WONT	252	Indicates the refusal to perform, or continue performing, the indicated option.
DO	253	Indicates the request that the other party perform, or confirmation that you are expecting the other party to perform, the indicated option.
DONT	254	Indicates the demand that the other party stop performing, or confirmation that you are no longer expecting the other party to perform, the indicated option.
IAC	255	Interpret as command

There are a variety of options that can be negotiated between a telnet client and server using commands at any stage during the connection. They are described in detail in separate RFCs. The following are the most important.

Decimal code	Name	RFC
1	echo	857
3	suppress go ahead	858
5	status	859
6	timing mark	860
24	terminal type	1091
31	window size	1073
32	terminal speed	1079
33	remote flow control	1372
34	linemode	1184
36	environment variables	1408

which is promising :)

  cq107 said:
converting that initial giberish to decimal gives me:

255,253,24,255,253,32,255,253,35,255,253,39,255,253,36

and if you look here: http://www.scit.wlv.ac.uk/~jphb/comms/telnet.html

there are all kinds of things:

[snip...]

which is promising :)

585225076[/snapback]

Yes, that is promising. This thread rocks. "Today at neowin I leaned more about telnet, and the handshaking process it goes through to start a session".

  rezza said:
Yes, that is promising. This thread rocks. "Today at neowin I leaned more about telnet, and the handshaking process it goes through to start a session".

585225100[/snapback]

YESS1!!!!!!!!!!!!!!!!!!!!

it works... all i did was echo back each thing i got from the terminal

wait 5 SEND_STRING dvServer, "255,253,24,255,253,32,255,253,35,255,253,39,255,253,36";
    wait 10 SEND_STRING dvServer, "255,252,24,255,252,32,255,252,35,255,252,39,255,252,36";
    wait 15 SEND_STRING dvServer, "255,251,3,255,253,1,255,253,34,255,253,31,255,251,5,255,253,33";
    wait 20 SEND_STRING dvServer, "255,253,3,255,251,1,255,252,34,255,252,31,255,254,5,255,252,33";

finally i got:

login:

!!!!!!!!!!!!!!!!!!! :woot: :D

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Does it mean that the game will have weapons now? If that is the case, I'm interested. Not having weapons does not make any sense, even if it changes the gameplay. In such a hostile environment the first thing anyone would do is get as much weapons as they could.
    • This DDR5-6400 CL36 32GB RGB RAM that supports both AMD and Intel is only $72 by Sayan Sen Recently, we covered several SSD deals, both internal and external. These include the Crucial X9 Pro and X10 Pro, the P310 2280, and the Samsung 990 EVO Plus. Meanwhile if you are looking for RAM to upgrade your desktop PC or build a new one, the PNY XLR8 Gaming EPIC-X RGB DDR5-6400 Kit can be your go-to choice as it is currently just $72 (purchase link down below). In terms of specs, this dual-RAM kit delivers 32GB of total DDR5 capacity (each module is 16GB) running at 3200 Hz to deliver 6400 MT/s (PC5-51200) at 1.4 volts. Pre-programmed Intel XMP 3.0 and AMD EXPO memory overclocking preset profiles mean you can fire up the kit to its rated speed with a simple BIOS tweak, rather than having to deal with manual timing adjustments. The CAS latency for this DDR5-6400 kit is 36, which is quite tight for a preset profile. Thermal performance is said to be stellar thanks to the aluminum heat spreader, which should help dissipate heat during extended gaming sessions. Additionally, the heat spreader is also said to feature an "embossed pennant design that enhances the overall look and complements the lighting of other components." Speaking of lighting, the included EPIC-X RGB model features ARGB LEDs diffused through a geometric polymer light pipe and allows syncing via Asus Aura Sync, Gigabyte RGB Fusion, MSI Mystic Light, or ASRock Polychrome Sync software. Get the PNY RAM at the link below: PNY XLR8 Gaming Epic-X RGB™ 32GB (2x16GB) DDR5 RAM 6400 CL36-48-48-104 Desktop Memory Kit (MD32GK2D5640036XRGB): $72.24 (Sold and Shipped by Amazon US) (MSRP: $109.99) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • Vivaldi 7.5 is out with colorful tab stacks, improved tab menu, and more by Taras Buria Vivaldi Technologies has released a new feature update for the Vivaldi browser. Version 7.5 is now available with some much-requested features by the community, privacy improvements, bug fixes, and other changes. The release is not the biggest one, but it still packs useful changes, such as colorful tab stacks, a reworked tab context menu, and multiple improvements under the hood: Vivaldi now supports colorful Tab Stacks. This feature groups related tabs and helps you keep everything well-organized. Now, besides giving your stacks names, you can assign colors, which makes it easier to find the stack you need. Developers also added a new dialog: right-click a stack, click "Edit Stack," and give it a new name or choose a color. The browser also received a cleaner and better-organized tab context menu. Vivaldi says the new version is more intuitive and easier to use. Another important change is the ability to define a custom DNS provider with support for DNS over HTTPS. Finally, here are some of the under-the-hood improvements in Vivaldi 7.5: Address Bar: Fixed focus weirdness, suggestion hiccups, and dropdown quirks Ad Blocker: Now supports badfilter, strict3p, and strict1p rules Bookmarks & Notes: Better drag-and-drop, with clearer visual feedback Mail & Calendar: Smarter threading, invite handling, and polish throughout Dashboard & Widgets: Layout tweaks, transparency improvements, drag-and-drop goodness Quick Commands: Now shows synced tabs and handles errors more gracefully Settings: UI improvements across the board, from DNS input to workspace rules visibility You can find the complete changelog for Vivaldi 7.5 in a blog post on the official website. If you want to try this highly customizable browser, download it using this link.
    • "While users may say they do not want their data used for personalized ads, Meta believes that without personalization, user experience declines with an almost 800% rise in ads being marked as “irrelevant” or “repetitive”. The ads might be more irrelevant, but it's not like people crave ads in the first place. My user experience with ads isn't better with personalization, because I don't want them there to begin with. So I might as well have non-personalized ads if I am gonna have ads, because then I at least get tracked less, and that makes it a better user experience for me.
    • The fact that they didn't offer a non-personalized ad-supported option, when they were mandated by law, was the final nail in the coffin in my case.
  • Recent Achievements

    • Week One Done
      BeeJay_Balu earned a badge
      Week One Done
    • Week One Done
      filminutz earned a badge
      Week One Done
    • Reacting Well
      SteveJaye earned a badge
      Reacting Well
    • One Month Later
      MadMung0 earned a badge
      One Month Later
    • One Month Later
      Uranus_enjoyer earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      446
    2. 2
      ATLien_0
      161
    3. 3
      +FloatingFatMan
      147
    4. 4
      Nick H.
      65
    5. 5
      +thexfile
      62
  • Tell a friend

    Love Neowin? Tell a friend!