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 7813711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:58:11+00:00 2026-06-02T04:58:11+00:00

Here is the issue. I was using my script to connect to a device

  • 0

Here is the issue. I was using my script to connect to a device directly over a telnet connection (from my windows desktop <=(telnet)=> to the device). Basicly, my script run some commands in TL1, capture the output and proceed according the parameter values… pretty straight forward.

This device will be install on another network, which i can’t reach anymore by telnet directly. Now, i have to start an ssh connection on the specific server and then, start the telnet session from there. (from my windows desktop <=(ssh)=> server <=(telnet)=> to the device)

I understand the basic of paramiko… i found that code on jessenoler website:

import paramiko
ssh.connect('127.0.0.1', username='jesse', password='lol')
stdin, stdout, stderr = ssh.exec_command("uptime")
type(stdin)
stdout.readlines()
# output:
# ['13:35  up 11 days,  3:13, 4 users, load averages: 0.14 0.18 0.16\n']

I can’t figure out how i could initiate a telnet from the server… Should i use :

ssh.exec_command("telnet 10.10.10.10 10001")

I know the easiest way to solve my problem is to have install python on the server, but i can’t. Someone faced that kind a problem before? Thanks for the input! 🙂

  • 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-02T04:58:13+00:00Added an answer on June 2, 2026 at 4:58 am

    You should setup an SSH tunnel instead of opening a normal connection. This can be done from the command line on your client with -L localport:server:remoteport, or it can be done from python with paramiko.

    Take a look at this answer and the linked gist for details of how to do it with Python.

    When you’ve set this up, you should connect with telnet to localhost on the port specified as localport.

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

Sidebar

Related Questions

Here's my issue - I need to dynamically download several scripts using jQuery.getScript() and
I've a small issue here. I am using an if statement with UIAlertView and
I'm have a weird issue here. I have a UITableView using custom UITableViewCells. Everything
I'm using ASP.NET MVC 2 and here's the issue. My View Model looks something
Here is the my python code using BeautifulSoup. The main issue is with the
Here's a page with the issue To reproduce the error, using IE - click
I have an issue going on here. I am using PHP to get values
I'm using mongoose in a script that is not meant to run continuously, and
I have been trying to run Linux shell script on Windows machine. to run
Hello I am having an issue using the proj4js library. Here is my source:

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.