Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Linux LAN 3

Status
Not open for further replies.

Berras

Programmer
Feb 24, 2002
42
GB
I have a Windows and a Linux computer connected in a LAN, is it possible for the Windows computer to connected to the Linux by telnet?
 
If telnet is enables on the Linux computer, but most distributions do not enable telnet servers by default (some do not even install it.)

(The instructions below are for RedHat and may need to be modified for other distros)

To see if telnet (server) is installed, type
rpm -qa|grep telnet-server
at the command prompt, if you see it returned it will be available... to see if it is running, type
netstat -pl|grep telnet

If nothing is retuned then you need to edit the /etc/xinetd.d/telnet file and change the
disabled = yes
to
disabled = no

then restart xinetd
/etc/init.d/xinetd restart


Another option, which is more secure and supported, is SSH.
You can download a windows SSH client for free (for trial, academic, or non-commercial use) at
Then all you need to do is ensure that ssh is started on the linux box (netstat -pl will do this)

SSH (SecureSHell) is an encrypted "telnet" client (an a whole lot more...)

---
John Hoke
If you found this post helpfull, please click below and let us know!
 
Hi,











Yes - as long as you have the telnet server package installed and configured. You don't say what linux that is but, for redhat, you'd first check if the telnet-server rpm was installed (rpm -q telnet-server). If not, install it of course. Then you'd need to make sure it wasn't disabled under xinetd by doing as root :











# /sbin/chkconfig telnet on











then restart xinetd :











# /etc/rc.d/init.d/xinetd restart











At this stage xinetd should be listening on port 23 for telnet connections. You can confirm this with the command :











# /usr/sbin/lsof -i TCP:23











After that, all that's left is to configure the firewall to allow inbound port 23 :











# /usr/sbin/lokkit (follow screens)

















After all that you should have no trouble telnetting to the linux box (assuming you have network connectivity in the first place.) However, you will not be able to login as 'root' - use a normal account and then 'su' to root from within telnet.











Even better, use ssh. You need to install the various rpms beginning with 'openssh' and use something like puTTY on the windows side. In fact, I'd recommend to use puTTY anyway as it can do telnet better that the regular windows telnet client.










If you have another linux (e.g. Suse) it may be a little different but the principles are the same.











Hope this helps
 
Hi,

On caldera, the telnet server rpm seems to be called 'netkit-telnet' . You'd need to install that rpm to start with. I believe caldera still uses inetd rather than xinetd so you'd need to make sure you /etc/inetd.conf has a line like :

telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top