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

  • SEARCH
  • Home
  • 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 511823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:15:24+00:00 2026-05-13T07:15:24+00:00

I am developing for a system that has an interactive telnet management console. Requirements

  • 0

I am developing for a system that has an interactive telnet management console. Requirements dictate that we disable telnet access and add SSH instead. Changing the management console into a stand-alone program that we can use for SSH login would require a vendor to get involved. I was thinking of a less expensive solution that would be something like this:

  1. Block the telnet management console from outside access but leave it running available for localhost connections.

  2. Write a login shell (in C++, or maybe something as simple as this if I’m lucky) that acts as a proxy. The login shell will telnet to localhost and send all commands it receives from the user over telnet, and send all displays and prompts it receives from the telnet server back to the user.

  3. Change /etc/passwd to launch this proxy shell when the user logs in over ssh.

Is what I’m thinking possible? Are there horrible pitfalls that I’ll get stuck on? Are there better alternatives? I’m using OpenSSH as the ssh daemon.

  • 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-05-13T07:15:24+00:00Added an answer on May 13, 2026 at 7:15 am

    Restricting Telnet to local connections sounds like a good plan, especially if you don’t want to touch the code. Steps 2 and 3 are unnecessary, though. You can simply invoke the “telnet” command in the remote shell once you’ve established the connection. This can be done automatically by creating a .ssh/rc script in the user’s home directory.

    BUT, one potential problem with this approach is that Telnet control sequences might not pass through correctly. So an alternative is to tunnel the Telnet connection through the secure SSH connection using port forwarding. With this strategy, you’ll continue to run Telnet on your client and server, but the connection is encrypted using SSH. To set that up, invoke the SSH client like this:

    ssh -L 23:localhost:23 user@host
    

    Replace “user@host” with the user/host of the SSH server. The effect of this command is that port 23 (telnet) on the client box will be opened. And connections made to it will be forwarded to port 23 on the server via SSH. So on your client, you’d Telnet to localhost and the connection will be forwarded to the Telnet server running on the same box as the SSH daemon.

    Note that you can change the first “23” to something else (e.g. 1123) if security settings on the client prevent you from using port 23 there. In that case, you’d point your Telnet client to localhost:1123 or whatever and it will be forwarded to port 23 on the remote system. Red Hat Magazine has a good tutorial on using SSH port forwarding for use cases like this.

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

Sidebar

Ask A Question

Stats

  • Questions 415k
  • Answers 415k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Certainly you can. Just set to 1.2, give the JSF… May 15, 2026 at 8:52 am
  • Editorial Team
    Editorial Team added an answer I don't think that the XMLHTTP object itself does even… May 15, 2026 at 8:52 am
  • Editorial Team
    Editorial Team added an answer http://macintoshhowto.com/audio/how-to-compress-speech.html has this: SMALLEST FILE SIZE ACCEPTABLE QUALITY. For very… May 15, 2026 at 8:52 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.