LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2010, 12:45 PM   #1
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101

Rep: Reputation: 21
telnet


I have got three computers at my home[A,B,C] ( all connected to each other), now I connect to B from A using telnet( $telnet ip_B) , but when I try to connect to C using this telnet session( telnet > open ip_C) , I get this error, "already connected to xxx". Is it possible to connect A to B and then use that session to connect to C, so that C finds that the request is being asked by B.
Can telnet do this, or is there any other service, that might be helpful.

Please do not mention ssh.
 
Old 08-21-2010, 02:11 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by r_s View Post
I have got three computers at my home[A,B,C] ( all connected to each other), now I connect to B from A using telnet( $telnet ip_B) , but when I try to connect to C using this telnet session( telnet > open ip_C) , I get this error, "already connected to xxx". Is it possible to connect A to B and then use that session to connect to C, so that C finds that the request is being asked by B.
Can telnet do this, or is there any other service, that might be helpful.

Please do not mention ssh.
Telnet already does that. But you don't say how you're doing this telnet session (command line, or from a program???) If you connect from A to B, then go from B to C, C will see you as coming from address B.

This all depends on your network setup, firewalls, etc. And if you don't like people mentioning SSH....too bad. SSH replaced telnet years ago, for a wide variety of reasons. Telnet is BAD to use, period, so upgrading is always going to be suggested. If you don't like the suggestions, then don't post the question.
 
Old 08-22-2010, 12:25 AM   #3
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101

Original Poster
Rep: Reputation: 21
Thanks for your suggestion.
I don't have anything against ssh, I know it's more secure and a great service. What I am trying to do is, using the command line telnet to B from A, this connects me to the B, now since ''[' is the escape character, pressing ctrl+[ , sends me to the telnet command prompt while I am still connected to B, now how can I connect to C using this command prompt, since on doing "telnet> open xxx" , I get the error, already connected to yyy. Is it possible to achieve this? I don't have any firewalls on any of the three systems.
Or if there is any other method , can you explain it to me ?
 
Old 08-22-2010, 12:48 AM   #4
xtacease
LQ Newbie
 
Registered: Oct 2007
Location: Austin/Warsaw
Distribution: oSuse 11.1
Posts: 12

Rep: Reputation: 1
sounds like you're still trying to open a connection from A. ctrl+[ seems arbitrary and possibly the root cause. When you're telnetted into another machine you should be able to run
Code:
telnet ip_C
from the shell. Such as previous poster stated.
 
Old 08-22-2010, 09:48 AM   #5
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101

Original Poster
Rep: Reputation: 21
Maybe I am not making myself clear, what I want is to connect A to B,
A> telnet B
connected to B
Escape character is '^]'.
now 'pressing ctrl+]'
telnet> open C
error?already connected to B.

so how can I achieve this using telnet.
 
Old 08-22-2010, 10:26 AM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Telnet can only open one connection at a time. When you escape back to the telnet prompt, the connection is still open, unless you issue the close command.
--- rod.
 
Old 08-22-2010, 10:55 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by r_s View Post
Maybe I am not making myself clear, what I want is to connect A to B,
A> telnet B
connected to B
Escape character is '^]'.
now 'pressing ctrl+]'
telnet> open C
error?already connected to B.

so how can I achieve this using telnet.
theNbomr explained it well.

And you're very clear, but are obviously having problems with basic concepts. Kind of like saying "I want to call my friend Bob, and when I get him on the phone, I want him to call Sally. So when Bob answers, I hang up....."
 
Old 08-22-2010, 11:17 AM   #8
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101

Original Poster
Rep: Reputation: 21
oh thanks ,got it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help sinamdar Linux - Software 7 04-11-2009 07:09 AM
Can't end telnet servcie in xinetd when close remote telnet cliend forcely zeroneworld Linux - Newbie 2 12-09-2007 08:47 PM
Can't end telnet servcie in xinetd when close remote telnet cliend forcefully. zeroneworld Linux - General 1 12-06-2007 07:17 AM
Running Telnet in a script, want to save Telnet output, howtodothis??? anil3 Linux - Software 2 03-08-2006 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration