I was wondering if anybody could help me setup my telnet on my linux 7.1 machine. I need it so i can do some remote work on soem stuff i've got going when i go away next month. I've tried a few times before but it didn't work, i don't know why.
what distribution of linux are you running? many of them have telnet installed by default. all you may have to do is uncomment it in your /etc/inetd.conf file. it would look something like this:
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
where service_name would be telnet, socket type would be tcp and so on...to uncomment the line you would remove the # at the beginning of the line.
you may however want to look into SSH. it is more secure than telnet. www.openssh.org
sorry haha i forgot to say what linux i was running...it's Red Hat 7.1, i think thats all i've gotta do because i remeber doing it before with red hat 7.1 to test it on on a Virtual Machine. Thanks and i'll look into that SSH.
I went into my /etc directory and i don't have the file inetd.conf...lol. I know it should be there some where but upon doing a grep nothing turned up. I have installed the apache server, php and sql so would any of those have moved it possibly. I remeber seeing it i just can't remeber where.
ill move this to the linux section, as this is linux specific. i dont use redhat and i dont know where your inetd.conf/xinetd.conf would be if its not in /etc/
Thanks for the help, after running the search it turned up nothing...lol. I'm going to give up and jsu ttry some other stuff because this is to annoying, i'll try that ssh instead. It'll give me a fresh start.
Oh boy haha i ran those commands and they both did not find xinetd.conf. I ran them on some other files i knew were there and they found them so i don't know what the hell is up with this, it's so messed!
Oh and in ran then on inetd.conf to and it came up with nothing!
In your /etc/xinetd.d directory, you should have a file named 'telnet'. If you do not you probably do not have the telnet rpm installed. Install it and see if the file shows up. Once it does simply edit is and change "disable=yes" to "disable=no". Now restart xinetd. There are many ways to do this, I use 'service xinetd restart' but I am not sure if this works way back in 7.1. If by chance you want to telnet as root, add lines like this to the end of /etc/securetty
pts/0
pts/1
pts/2
...
When you telnet to a RHL box you connect to the pts/# device. The securetty file tells telnet which devices to allow root to connect to. No pts means no root telnet which may or may not be what you want.
After turning my computer room upside down not once but twice i've come to the conclusion that my red hat CD is MIA. Is there anywhere i can download teh RPM for the telnet client? hehe i'm so hopless. I tried a few sites but it jsut brings me up jiberish on the screen instead of a download. Haha i'm so sorry, i'm really new to this and i don't have anybody to ask so this is the only place i can come....lol. Thanks
byblyk, go back to the sites where you said when you tried to download it you just recieved garbage on the screen. instead of regular clicking on whatever link brought you to that, right click on it and click save as.
if those links dont turn out to be what you were expecting, try searching freshmeat.net. you could of course go to a redhat package specific site, but i dont feel like searching for any .
however you *should* know about freshmeat.net, as well as cool little projects people throw together, you can find many standard unix tools there aswell.
OK i installed teh telnet RPM, it's in my xinetd.conf file now, i've enabled it in my services file, i've allowed root login but! haha i still can't connect, even from the machine itself it says connection refused. Did i miss a step? Thanks for all your help!
Try 'service xinetd restart' and then try to telnet in again. If you are trying to telnet as root you must also add lines like this to /etc/securetty
pts/0
pts/1
pts/2
Keep numbering as high as you want. I typically go to pts/10. On some busy systems I have gone as high as 30. Everyone logs in as root to some of our test systems.
Thanks but i don't have an xinetd.conf file...when i run the command service xinetd restart it says that it is an unreconized service. Also i don't have inetd.conf, i don't know why i don't have this file. Is it possible for me to download it from any where, like an RPM or somthing?
I downloaded and installed teh xinet RPM package just for the hell of it and i now have the xinetd.conf file but it says nothing of telnet..here is what is in it
I thought you already installed it, my misunderstanding. Re-read the posts I put up earlier now that you have xinetd. All services run under xinetd (including telnet) have a config file in /etc/xinetd.d which you should now have.