LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Help Forwarding Telnet Port (https://www.linuxquestions.org/questions/linux-server-73/help-forwarding-telnet-port-751759/)

bathrinath 09-01-2009 06:47 AM

Help Forwarding Telnet Port
 
hi.

I want to forward telnet port from 1 server to other linux server?

choogendyk 09-01-2009 07:09 AM

Why? Telnet is insecure. You can use ssh and do port forwarding. For example, we have all our printers on a private subnet and only allow the department server to talk to that subnet. I can ssh to the department server and forward port 80 from a particular printer to my desktop on a local port, say 1080. Then I can have Firefox on my desktop connect to port 1080 and I'm on the printer's web interface. It goes from me to the server over ssh.

I suppose you could do that same sort of thing with telnet. Use ssh to one server and have the telnet port forwarded back to you. I suppose you might do this with switches that don't have ssh. Same way I do with our printers.

bathrinath 09-01-2009 09:22 AM

Quote:

Originally Posted by choogendyk (Post 3665235)
Why? Telnet is insecure. You can use ssh and do port forwarding. For example, we have all our printers on a private subnet and only allow the department server to talk to that subnet. I can ssh to the department server and forward port 80 from a particular printer to my desktop on a local port, say 1080. Then I can have Firefox on my desktop connect to port 1080 and I'm on the printer's web interface. It goes from me to the server over ssh.

I suppose you could do that same sort of thing with telnet. Use ssh to one server and have the telnet port forwarded back to you. I suppose you might do this with switches that don't have ssh. Same way I do with our printers.

actually im working @ college.so student want to work telnet @ home so i need to forward.

In college Railnet proxy server is running for internet. student telnet server is separate server. thats why i need to forward... can u help me any other way to use telnet over internet?

choogendyk 09-01-2009 09:55 AM

If you google "ssh port forwarding howto", there are several good links at the top of the first page. Browse through those. They give plenty of examples and explanation. I used the O'Reilly book "SSH, The Secure Shell" by Barrett and Silverman when I set mine up. For my example, my desktop is Mac OS X, the server I'm connecting through is Solaris 9, and I'm connecting to an HP printer. I opened a terminal window on my Mac, did

$ ssh me@myserver.whereami.edu 8080:172.31.55.225:80

That gives me an ssh tunnel to my server and forwards it so that when I connect to port 8080 on my Mac it gives me port 80 on the remote HP printer. The 172.31.55.255 is an IP address on a private network. So, then, in the url field on firefox, I enter `http://localhost:8080`, and I've got the web interface on the printer.

I'm not sure how your setup translates.

Maybe after you look through the google links mentioned above, you can think about it a bit and come up with some more specific questions along with more detail on what your connections are.


All times are GMT -5. The time now is 02:22 AM.