LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2005, 08:58 PM   #1
hal9k
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10
Posts: 6

Rep: Reputation: 0
trying to telnet or ssh to new system


I've just installed my first linux system (Mandrake 10) and it seemed to go well. Now I want to access it via telnet or ssh from a windows system in a different room. When I try to connect, I get a message that says Network Error - Connection Refused.

Apparently I have to tell the linux system to accepts such connects, but I can't find anything about telnet or ssh on the linux system. Any suggestions on how to do this? Please be gentle as I am embarrassingly new to linux. Thanks.
 
Old 05-06-2005, 09:13 PM   #2
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Rep: Reputation: 15
are you running a ssh server? I forgot what it was caled but I think the one I'm running is openssh, I also use PuTTy as the client
 
Old 05-06-2005, 09:18 PM   #3
hal9k
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10
Posts: 6

Original Poster
Rep: Reputation: 0
No server

Apparently I'm not running any sort of ssh server. I had planned to use telnet and didn't think I would need a separate server, but when I couldn't connect with telnet, I then tried ssh with the same result.

I've tried the telnet server in windows and also telnet, rlogin, and ssh via the putty client running on windows.

Don't know if it matters, but the linux system has not host name. I reference it via IP address and am able to ping it successfully.

Thanks.
 
Old 05-06-2005, 09:26 PM   #4
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Rep: Reputation: 15
IP addresses work fine, I prefer them

yes you will need a SSH server I've never used Mandrake so I don't know how you would install it but the program is called openssh server I believe, so you might want to google it
 
Old 05-07-2005, 06:14 AM   #5
Arbuthnot
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian
Posts: 14

Rep: Reputation: 0
I'm a bit rusty on Mandrake, but if memory serves there is a facility on Drakconf that shows what services
are running at boot. you should be able to switch on ssh from there. I think. I hope. Maybe.
 
Old 05-07-2005, 08:31 AM   #6
siyeclover
Member
 
Registered: Jan 2003
Location: RaMetal
Distribution: Solaris,FC2,FreeBSD
Posts: 41

Rep: Reputation: 15
If you want connect your Linux system by telnet or ssh, you must run a telnet server(xinetd) or a ssh server(standalone) on the linux system.



siyeclover
 
Old 05-07-2005, 11:24 AM   #7
hal9k
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10
Posts: 6

Original Poster
Rep: Reputation: 0
I downloaded openssh, but have no idea how to compile and install it. Since telnet is just fine for my purposes I'll see if I find xinetd and figure out how to get it working.

All suggestions appreciated greatly.

Thanks!
 
Old 05-07-2005, 03:14 PM   #8
hal9k
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10
Posts: 6

Original Poster
Rep: Reputation: 0
still no luck with telnet

I'm still floundering. Any suggestions on how to tell telnet that it should be running and accepting connections?

Thanks!
 
Old 05-07-2005, 06:44 PM   #9
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You really should avoid telnet and use SSH instead. Probably the easiest way to do it is install the openssh RPMs that came with Mandrake (in particularlr openssh-server). Then you should be able to do /etc/init.d/sshd start to start up sshd. There should also be a services controller for mandrake that you can use to make sshd start at boot. I don't use Mandrake though, so someone else will have to help you with that.
 
Old 05-07-2005, 06:57 PM   #10
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Hi,

For accessing Telnet services there has to be a Telnet server running on the machine you wish to access.

To start the telnet server go to the /etc/xinetd.d/ directory. Edit the file "telnet" and set disable = no

Then Restart the xinetd service.

You can do so by typing in the terminal
/etc/init.d/xinetd restart

I would also recommend using ssh. It is more secure and uses encrypted username/password pairs whereas Telnet uses unencrypted username/password pairs for authentication.
Hope that helps
 
Old 05-07-2005, 08:43 PM   #11
hal9k
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10
Posts: 6

Original Poster
Rep: Reputation: 0
still no luck

I agree that ssh is superior, but I'm looking for simple. My network extends from my living room to my bedroom, so security is not a concern.

I didn't have a telnet file in my /etc/xinetd.d directory, so I created one. I then restarted xinetd and tried to connect from another system.

I got the message:
Could not connect to the host on port 23: Connect Failed

What else should I be doing?

Thanks again!!!

Hal
 
Old 05-08-2005, 12:24 AM   #12
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Chances are you don't have the telnet-server RPM installed. You'll need to get it and install it. But installing ssh (which you also don't appear to have installed) is just as trivial, really.
 
Old 05-08-2005, 10:02 AM   #13
Arbuthnot
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian
Posts: 14

Rep: Reputation: 0
Open a console and at the prompt type

type ssh

then press return, this will tell you if you have ssh installed and if so where it is, prolly /usr/bin/ssh.
If you have got it installed it must mean you haven't got it enabled, go to boot services (Drakconf?)
and enable it at boot. If you haven't got it installed, get a copy of Network Administrators Guide from
Linux Documentation Project turn to page 247 and take it from there.
 
Old 05-08-2005, 10:45 AM   #14
hal9k
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10
Posts: 6

Original Poster
Rep: Reputation: 0
thanks

thanks again, I'll give that a try.
 
Old 06-06-2005, 12:07 PM   #15
tajo
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
hi everybody....
im doing exam right now and i have a question how to connnect winows mashine to the linux telnet server....
i have installed Putty and telnet server in linux but what more i have tot do in linux?...
when i want to connect whit putty then i get "Connection closed by foreign host" what that mean...
plz help...i have to get through this exam...
thnx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why you should use ssh instead of telnet. Artanicus Linux - Networking 1 12-02-2005 01:45 PM
telnet through ssh sanjay2004 Linux - Networking 1 07-16-2005 10:30 AM
X over SSH then telnet JSkalka Linux - Security 5 11-21-2003 05:19 PM
Telnet, ssh, etc. mrozkan *BSD 1 07-18-2002 12:55 PM
Telnet and SSH Rampage2884 Linux - Networking 3 04-30-2002 03:31 PM


All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration