LinuxQuestions.org
Visit Jeremy's Blog.
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, 01:45 PM   #1
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

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, 03:11 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,258

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
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, 01:25 AM   #3
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

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, 01: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, 10:48 AM   #5
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

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, 11:26 AM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
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, 11:55 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,258

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
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, 12:17 PM   #8
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:09 AM
Can't end telnet servcie in xinetd when close remote telnet cliend forcely zeroneworld Linux - Newbie 2 12-09-2007 09:47 PM
Can't end telnet servcie in xinetd when close remote telnet cliend forcefully. zeroneworld Linux - General 1 12-06-2007 08:17 AM
Running Telnet in a script, want to save Telnet output, howtodothis??? anil3 Linux - Software 2 03-08-2006 05:01 PM

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

All times are GMT -5. The time now is 02:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration