Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:24:03+00:00 2026-06-08T18:24:03+00:00

When using telnetlib I noticed some interesting variables: AUTHENTICATION = chr(37) # Authenticate XAUTH

  • 0

When using telnetlib I noticed some interesting variables:

AUTHENTICATION = chr(37) # Authenticate
XAUTH = chr(41) # XAUTH
PRAGMA_LOGON = chr(138) # TELOPT PRAGMA LOGON
SSPI_LOGON = chr(139) # TELOPT SSPI LOGON

Also, this page lists some RFCs which describe AUTHENTICATION option in detail.

If I understand correctly, if a telnet server supports authentication I should be receiving IAC DO AUTHENTICATION when connecting to it. However, when trying to connect to telnetd on a Linux machine I do not receive this option and so I can’t send IAC WILL AUTHENTICATION.

Is my understandng correct? Is there a way I can ask the server to perform authentication? Is it even possible to authenticate telnet session automatically? (without listening to “Login:”, “Username:”, “Password:” and similar prompts)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:24:04+00:00Added an answer on June 8, 2026 at 6:24 pm

    Yes, you are understanding RFC 1416 correctly. The server should send DO first, if it supports authentication. You can try sending WILL anyway but that’ll be against the spec and probably won’t work anyway.

    By Linux telnetd, you probably mean the netkit telnetd. And as far as I can see on its manpage:

    -a authmode This option may be used for specifying what mode should be used for
    authentication. Note that this option is only useful if telnetd has
    been compiled with support for authentication, which is not available
    in the current version
    . […]

    So I’d simply say it can’t do that. I’m using the OpenBSD telnetd (telnet-bsd package in Gentoo); it seems to have some auth bits but I wasn’t able to get it to work at all. I suspect it only supports Kerberos-based auth.

    Looking at the authentication types list in RFC 2941, it seems that most authentication types were never even specified. Looking at those which are, DSS/DSA is mostly interesting (it is used in SSH as well) but I guess it will be really hard to find a compliant server and client. Sadly, it seems that there were no proposals for simple (plaintext) authentications there.

    So, to sum up: yes, it would be possible if someone implemented it. But since telnet is practically dead, I doubt you’ll find server implementations for that. And even if you did, you’d have to write the client-side yourself which won’t be that easy with the supported schemes. So I doubt it’s worth the effort.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a script to navigate a text-based menu system, using python's telnetlib to
I'm using telnetlib to get a few lines of text (tn = telnetlib). o
I'm using python's telnetlib to connect to a remote telnet server. I'm having a
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
When I run this Python 3.1 code to access a device using telnetlib, it
im using a telnetlib in python to connect to a simple mail server and
Using Rails 3.1. I have some pages that render same layout, except the contents
Using the Exiv2 library to write some exif tags to an image i'm running
I am looking for a way to resize terminal when using telnetlib . I
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.