LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-06-2003, 05:47 PM   #1
muneebs123
LQ Newbie
 
Registered: Sep 2003
Posts: 23

Rep: Reputation: 15
How to enable telnet


I want to know how can i enable others to connect to my pc using the telnet. I am using mandrake 9.1
 
Old 09-06-2003, 06:26 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I would suggest avoiding telnet. It is very insecure - any transmissions that occur are not encrypted, including things like passwords, so anyone who might be eavesdropping could find out your users' passwords and whatnot.

The best alternative is Secure Shell (ssh, or open-ssh). Mandrake may have installed it for you. If you installed any package called "sshd", then you already have it, and it's probably already running. Check out the OpenSSH homepage for documentation and stuff.

If you really want to use telnet, see if you can find "telnetd" on your installation discs, or if you have already installed it.

Good luck!
 
Old 09-06-2003, 07:13 PM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You need to install the telnet-server RPM package.

To enable telnet, you will need to edit /etc/xinetd.d/telnet
Change the disable line from Yes to No.
Code:
disable = no
Then you will need to restart the xinetd service.
Code:
service xinetd restart
 
Old 09-06-2003, 08:08 PM   #4
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint Debian Edition (LMDE)
Posts: 215

Rep: Reputation: 31
It's amazing how different two GNU/Linux distributions can be! On Slackware, telnetd is installed with the tcpip package. You would just uncomment the line for telnet in /etc/inetd.conf and send the HUP signal to inetd to restart it.
 
Old 09-07-2003, 03:18 AM   #5
muneebs123
LQ Newbie
 
Registered: Sep 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Can anyone tell me by what command the users will be able to export the graphics from my pc, when they are working on the telnet console.
 
Old 09-07-2003, 05:19 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

That would include asking the same question in 2 different threads

Thanks

Cool
 
Old 09-07-2003, 08:42 AM   #7
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Quote:
Originally posted by muneebs123
Can anyone tell me by what command the users will be able to export the graphics from my pc, when they are working on the telnet console.
Well, if your users are using ssh, and assuming they are running X servers on their own computers (which they are, if they are using Linux) it's really easy. All they have to do is:

ssh -X username@yourhostname

The "-X" tells ssh to export all the graphics. Pretty cool, eh?

With telnet, it's a little harder; users may manually have to set the DISPLAY environment variable after they log in, like this:

DISPLAY=user's.host.computer:0
export DISPLAY

Check out the Remote X Apps HOWTO for more info.
 
Old 09-07-2003, 10:26 AM   #8
muneebs123
LQ Newbie
 
Registered: Sep 2003
Posts: 23

Original Poster
Rep: Reputation: 15
WHAT IF THE client is using windows. .... then what do i ll have to do. Please tell me from both sides.
 
Old 09-07-2003, 01:20 PM   #9
muneebs123
LQ Newbie
 
Registered: Sep 2003
Posts: 23

Original Poster
Rep: Reputation: 15
still in problems

Now when i connect throught the client using telnet and use the


export DISPLAY=10.1.5.20:0


server IP = 10.1.5.6
clienr IP = 10.1.5.20


i still get the error message that X system is unable to export the graphics and check the xhost.

can someone help me out with this.
 
Old 09-07-2003, 01:34 PM   #10
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Please read the HOWTO that I gave you earlier. It answers most of the questions you are asking. We are more willing help those who are willing to help themselves
 
Old 09-08-2003, 12:56 AM   #11
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
i need to agree with others, do not use TELNET but use SSH, you can use putty, it is ssh client for windows.

In the ssh windows enter the ip address of your server and select your the SSH port 22, then input the user name and the password.

Then follow the instructions that given by wapcaplet.
 
Old 04-04-2008, 06:01 AM   #12
bilash
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Post

use a simple script...like this...

/sbin/iptables -A INPUT -p tcp -s 0/0 -d x.x.x.x/24 --dport 23 -j ACCEPT
/sbin/iptables -A FORWARD -p tcp -s 0/0 -d x.x.x.x/24 --dport 23 -j ACCEPT

here x.x.x.x is the IP address of the host/network from the network you want to access by telnet
write this in a script with a name say 'enable-telnet' and run in with ./enable-telnet
if permission related complexity arise, give proper permission to run it.
 
  


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
enable telnet mbquartnut SUSE / openSUSE 6 05-23-2008 11:35 PM
How to enable Telnet in Linux? lapzlinux Linux - Networking 9 08-11-2006 02:26 AM
Can't enable Telnet server xailer Linux - Newbie 2 11-23-2003 11:48 AM
enable telnet but can't telnet from the computer guanyu Linux - Networking 8 08-26-2002 07:34 AM
enable telnet on RH7.1 systray Linux - Newbie 1 03-22-2002 01:34 PM


All times are GMT -5. The time now is 12:53 PM.

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