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

    • CPU-Z 2.16 by Razvan Serea CPU-Z is a freeware utility that gathers information on some of the main devices of your system. CPU-Z does not need to be installed, just unzip the files in a directory and run the .exe. In order to remove the program, just delete the files. The program does not copy any file in any Windows directory, nor write to the registry. CPU Name and number. Core stepping and process. Package. Core voltage. Internal and external clocks, clock multiplier. Supported instructions sets. All cache levels (location, size, speed, technology). Mainboard Vendor, model and revision. BIOS model and date. Chipset (northbridge and southbridge) and sensor. Graphic interface. Memory Frequency and timings. Module(s) specification using SPD (Serial Presence Detect) : vendor, serial number, timings table. System Windows and DirectX version. CPU-Z 2.16 changelog: AMD Ryzen Z2 and Z2 Extreme (Strix Point). AMD Ryzen 9 8945HX, 8940HX, Ryzen 7 8840HX, 8745HX (Dragon Range refresh). Improved support of AMD Ryzen AI 7 350 and Ryzen AI 5 340 (Kraken Point). Zhaoxin KaiXian KX-U6780A and KX-U6580 (LuJiaZui, 8 cores). AMD Radeon RX 9060 XT (Navi 44). NVIDIA RTX 5060 Ti (GB206), RTX 5060 (GB206), RTX 5050 (GB207) Download: CPU-Z 2.16 | Portable ~3.0 MB (Freeware) View: CPU-Z Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • We will go to Mars to say, "We landed on another planet". However, we won't be staying because there is little reason to do so. Tourism for (and hang gliding within) the Valles Marinaris being an exception. HOWEVER, the actual reason to go to Mars is to develop the technologies and infrastructure needed for asteroid mining, the key to ending Earth's resource depletion worries once and for all. https://science.howstuffworks.com/asteroid-mining.htm And there is big, BIG money in asteroid mining (<- this is Musk's endgame). While there are lots of near-Earth asteroids that can be mined for trillions, if we're going to mine the asteroid belt between Mars and Jupiter, Mars (or one of its two moons) make the best choice for a waystation for processing ore before sending the finished product to Earth or Earth's Moon for manufacturing, etc.
    • The Edge UI team is total dogshit Chrome looks way more consistent. Mica has been broken before. Then suddenly some of the other menu's look different and redesigned, except the extension menu that keeps the old look for months. Then we finally got the global media controls that where coming, not coming, coming back again etc. One day I have the cool new chromium design, the day after it reverts to a design from last year. Then settings pages changes 3 times in a month etc. We get a new tab redesign that is announced with fancy commercials and blog posts everywhere, to never be seen again. It is always something. I think I will finally going back to Chrome because I am tired of this unprofessional UI team where everything seems to be in constant beta or stuff changes overnight and back for no reason.
    • Zen Browser 1.14.2b by Razvan Serea Zen Browser is a privacy-focused, open-source web browser built on Mozilla Firefox, offering users a secure and customizable browsing experience. It emphasizes privacy by blocking trackers, ads, and ensuring your data isn't collected. With Zen Mods, users can enhance their browser experience with various customization options, including features like split views and vertical tabs. The browser is designed for efficiency, providing fast browsing speeds and a lightweight interface. Zen Browser prioritizes user control over the browsing experience, offering a minimal yet powerful alternative to traditional web browsers while keeping your online activity private. Zen Browser’s DRM limitation Zen Browser currently lacks support for DRM-protected content, meaning streaming services like Netflix and HBO Max are inaccessible. This is due to the absence of a Widevine license, which requires significant costs and is financially unfeasible for the developer. Additionally, applying for this license would require Zen to be part of a larger company, similar to Mozilla or Brave. Therefore, DRM-protected media won't be supported in Zen Browser for the foreseeable future. Zen Browser offers features that improve user experience, privacy, and customization: Privacy-Focused: Blocks trackers and minimizes data collection. Automatic Updates: Keeps the browser updated with security patches. Zen Mods: Customizable themes and layouts. Workspaces: Organize tabs into different workspaces. Compact Mode: Maximizes screen space by minimizing UI elements. Zen Glance: Quick website previews. Split Views: View multiple tabs in the same window. Sidebar: Access bookmarks and tools quickly. Vertical Tabs: Manage tabs vertically. Container Tabs: Separate browsing sessions. Fast Profile Switcher: Switch between profiles easily. Tab Folders: Organize tabs into folders. Customizable UI: Personalize browser interface. Security Features: Inherits Firefox’s robust security. Fast Performance: Lightweight and optimized for speed. Zen Mods Customization: Deep customization with mods. Quick Access: Easy access to favorite websites. Open Source: Built on Mozilla Firefox with community collaboration. Community-Driven: Active development and feedback from users. GitHub Repository: Contribute and review the source code. Zen Browser 1.14.2b changes: Fixed an issue when disabling mods Download: Zen Browser | 73.6 MB (Open Source) Download: Zen Browser ARM64 | Other Operating Systems View: Zen Browser Home Page | Screenshots 1 | 2 | Reddit Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • What do you mean no one can land an unammaned craft on the moon? It has been done plenty of times before... Kubrick definitely did no such thing and it would be far easier to actually go the moon than try to fake it. If the US did fake it wouldn't you believe their ideological enemies in the Soviets would have immediately threw up red flags and pointed fingers, instead of congratulating them with the rest of the world?
  • Recent Achievements

    • Explorer
      CHUNWEI went up a rank
      Explorer
    • Contributor
      SnyPer456 went up a rank
      Contributor
    • First Post
      LELO2025 earned a badge
      First Post
    • First Post
      Caltor earned a badge
      First Post
    • One Month Later
      LagFighterZ earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      394
    2. 2
      +FloatingFatMan
      153
    3. 3
      ATLien_0
      149
    4. 4
      macoman
      66
    5. 5
      +thexfile
      63
  • Tell a friend

    Love Neowin? Tell a friend!