Click to See Complete Forum and Search --> : Telnet problem


mpooley
11-25-2002, 09:08 AM
I cant seem to get this working whatever i try!

If i telnet myself eg: open localhost
for a few seconds i get "Connected to Localhost"
then I get :
"Connection closed by foreign host"

I get the same if i try to telnet in from the network.

I am using suse 8.1 - i've read the manuals- no help at all!
i've googled all round the web but nothing i've found has helped !

Can anyone help me please?

Mike

2damncommon
11-26-2002, 11:48 PM
Any answer to a telnet question must contain a line that says you should be using ssh instead. Done.
Do you have the telnet-server package installed?
http://www.suse.de/us/private/products/suse_linux/i386/packages_personal/telnet-server.html
If so, "man telnet-server" should tell you how to start it, if needed.
Even better, install ssh and sshd.

rbelt
11-27-2002, 12:14 AM
it might also be that you have enabled ipchains or something like that...

//RB

mpooley
11-27-2002, 06:26 AM
Thanks for your replies.

I looked int this SSH thingy and installed it.

Worked first time no probs!

Thanks

:)

humble linuxer
04-28-2003, 11:42 AM
But could you telnet from windows 98/2000? It seems ssh can only be run on a linux box.

DJBanaan
04-28-2003, 11:56 AM
To SSH from a Win32 machine use PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/)

humble linuxer
04-28-2003, 12:12 PM
cheers. I tried it and it looks cool.
But does it mean that the win32 telnet client cannot be used to connect to suse 8.1? I was able to do this with suse 7.0 without any problems:confused:

Icarus
04-28-2003, 12:23 PM
I know with Red Hat that telnet is disabled by default (security reasons as mentioned) and must be turned back on by editing a file (/etc/network/somthing-or-other) Search the site with telnel and my name I have it posted somewhere last year.

I wouldn't be suprised if SuSE has done the same thing.

chrism01
04-28-2003, 12:56 PM
You can connect to a Linux box via telnet from any OS if the telnet service is up and not blocked by the firewall.
On Redhat, the relevant file is /etc/xinetd.d/telnet and you need to set
disable = no
to turn it on and enable the xinetd daemon.
As mentioned above, this is a VERY BAD idea; use ssh (or Putty from MSwin) unless no choice. iirc, you will prob find that root cannot use telnet anyway; you'd have to login as a user, then su or sudo.