Can I Modify The Telnet Server To Listen To Non-Standard Ports?
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can I Modify The Telnet Server To Listen To Non-Standard Ports?
The Subject says it all. I would like to have the telnet server listen on a non-standard port. I don't want that open to the world to play with. Is it possible?
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98
Rep:
Re: Can I Modify The Telnet Server To Listen To Non-Standard Ports?
Quote:
Originally posted by windisch The Subject says it all. I would like to have the telnet server listen on a non-standard port. I don't want that open to the world to play with. Is it possible?
Depends. What telnet daemon you running? If it's the one that comes with xinetd (in.telnetd) then edit the /etc/xinetd.d/telnet file and add "port = 123" (without quotes) if you want it on tcp port 123.
If you are using some other telnet daemon then who knows.
-b
edit: remember not to use a port that some other service is using... else linux will bark at you.
Re: Re: Can I Modify The Telnet Server To Listen To Non-Standard Ports?
Quote:
Originally posted by bignerd Depends. What telnet daemon you running? If it's the one that comes with xinetd (in.telnetd) then edit the /etc/xinetd.d/telnet file and add "port = 123" (without quotes) if you want it on tcp port 123.
If you are using some other telnet daemon then who knows.
-b
edit: remember not to use a port that some other service is using... else linux will bark at you.
I found the file, thank you. Can I have the default and another port? or will adding port remove the default port?
Thanks for the advice. Sounds like I should be using SSH instead of telnet anyway. I'll give it a shot. Thanks for the help guys, I'm learning more everyday.
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98
Rep:
Quote:
Originally posted by windisch Thanks for the advice. Sounds like I should be using SSH instead of telnet anyway. I'll give it a shot. Thanks for the help guys, I'm learning more everyday.
ssh is a very good idea.
But.. if you still wanted to have telnet on 2 different ports at the same time there is a way without having to install two telnet services. I just finished running down an idea I had and it seems to work if you are using xinetd.d. If you are still interested then post back.
Welll, since I didn't know that telnet was not secure and ssh is, I'll stop using telnet. I've only been using Linux for about 6 months, to setup MythTV. Now I'm trying to see what I can do with Linux itself. Thanks again for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.