Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Telnet
PostPosted: Thu Jun 19, 2003 4:18 pm 
Offline
Junior Member

Joined: Tue Jun 17, 2003 2:18 pm
Posts: 47
Website: http://www.clan-intrepid.com
AOL: mshine311
Are there instructoins somewhere to setup telnet?


Top
   
 Post subject:
PostPosted: Thu Jun 19, 2003 4:29 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Telnet is insecure, just so you know, but..

Install telnetd via apt or rpm, then edit /etc/xinet.d/telnet(d) and change disabled=yes to disabled=no, then restart xinetd.

That should do it...

-Chris


Top
   
 Post subject:
PostPosted: Sat Jun 21, 2003 11:09 am 
Offline
Junior Member

Joined: Tue Jun 17, 2003 2:18 pm
Posts: 47
Website: http://www.clan-intrepid.com
AOL: mshine311
just for a tip.. for debian you have install telnetd and then it will automatically put the line for telnet into the /etc/xinet.d file.

EDIT: actually not the /etc/xinet.d file but the /etc/inetd.conf file for debian.


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2008 7:34 pm 
Offline

Joined: Fri Jan 14, 2005 9:59 am
Posts: 1
ICQ: 729238
WLM: john.ahrends@me.com
AOL: jahrends
sec39 wrote:
just for a tip.. for debian you have install telnetd and then it will automatically put the line for telnet into the /etc/xinet.d file.

EDIT: actually not the /etc/xinet.d file but the /etc/inetd.conf file for debian.


I understand telnet is insecure but sometimes that is all that is available. I installed telnet and I can perform
telnet localhost and it works

from my home network when I telnet to my linode this is what happens.

YM9007DC:~# telnet xxx.org
Trying 72.14.xxx.xxx...
Connected to xxxx.members.linode.com.
Escape character is '^]'.
Connection closed by foreign host.
YM9007DC:~#


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2008 9:34 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
If telnet localhost works but telnet external_ip_address fails then it's probably a restriction in /etc/hosts.allow or /etc/hosts.deny

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2008 10:40 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
/me shudders.

Use ssh, man. Carry PuTTY around on a thumbdrive. If that doesn't work, you can always use the ajaxterm from LPM.


Top
   
 Post subject:
PostPosted: Fri Aug 01, 2008 5:59 am 
Offline
Junior Member

Joined: Thu Nov 08, 2007 12:40 am
Posts: 34
sweh wrote:
If telnet localhost works but telnet external_ip_address fails then it's probably a restriction in /etc/hosts.allow or /etc/hosts.deny


I don't know what distro you are running. You probably have to modify /etc/securetty and add virtual terminals to log in remotely.

Probably something like:
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7

Then restart inetd or xinetd.

I too would not recomment using telnet on a remote server.
You can use linode's remote console terminal if you can't use putty.


Top
   
 Post subject:
PostPosted: Fri Aug 01, 2008 6:35 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
flb wrote:
I too would not recomment using telnet on a remote server.

Let's do more than just recommend. Let's scream "for the sake of all that's holy don't do it". If anyone, anywhere along the route to your Linode is ever sniffing packets, your box is pwned.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Aug 01, 2008 11:47 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
flb wrote:
I don't know what distro you are running. You probably have to modify /etc/securetty and add virtual terminals to log in remotely.


That's only needed if you want to login as root, which is a REALLY bad idea via telnet!

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Fri Aug 01, 2008 11:48 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
pclissold wrote:
Let's do more than just recommend. Let's scream "for the sake of all that's holy don't do it". If anyone, anywhere along the route to your Linode is ever sniffing packets, your box is pwned.


Unless you're smart enough to work out how to use S/Key :-)

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Fri Aug 01, 2008 10:10 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
I'm with pclissold on this one. Don't log in with telnet! telnet is only good for manually testing other kinds of servers, and telnetd should not be used for any reason.


Top
   
 Post subject:
PostPosted: Sat Aug 02, 2008 7:06 am 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
telnet...... DON'T DO IT

Even go so far as removing/renaming telnetd. The ONLY thing telnet should be used for is as a client to troubleshoot, it's suicide to have the telnet daemon running.

Use ssh, create your main user, put them in the "wheel" group, disable root access and use ssh only to access your box. Then when you need to do root functions just "su - root".


Top
   
 Post subject:
PostPosted: Sat Aug 02, 2008 12:35 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
marcus0263 wrote:
Use ssh, create your main user, put them in the "wheel" group, disable root access and use ssh only to access your box. Then when you need to do root functions just "su - root".


Ah, nice to see an old-school unix head. :-)

The more modern version would be "Use ssh, create your main user, and add them to /etc/sudoers, using 'visudo', after reading the sudo and sudoers man pages." Some advantages (IMO) of sudo over su: better control of environment, you enter *your* password, not roots, the password is cached for a little while, and less flakiness in the syntax for invoking commands.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Sat Aug 02, 2008 12:44 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
SteveG wrote:
marcus0263 wrote:
Use ssh, create your main user, put them in the "wheel" group, disable root access and use ssh only to access your box. Then when you need to do root functions just "su - root".


Ah, nice to see an old-school unix head. :-)

The more modern version would be "Use ssh, create your main user, and add them to /etc/sudoers, using 'visudo', after reading the sudo and sudoers man pages." Some advantages (IMO) of sudo over su: better control of environment, you enter *your* password, not roots, the password is cached for a little while, and less flakiness in the syntax for invoking commands.

Personally I prefer not using sudo. If you need to conduct root functions just do it as root in root's environment, why add another layer to worry about ya know ;)

I know sudo is popular and a lot of people use it on their desktop. But this also let's people us the GUI for root functions :(

Anyway, yeah I'm old school hell I at work on my corp workstation I use vi as my text editor ;)


Top
   
 Post subject:
PostPosted: Sat Aug 02, 2008 3:28 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
marcus0263 wrote:
Personally I prefer not using sudo. If you need to conduct root functions just do it as root in root's environment, why add another layer to worry about ya know ;)


'Cause sudo will log each command you run. That's *very* nice to have. Even if you're the only admin on the box, sudo logging has saved my butt several times when trying to remember the exact syntax of some obscure command - all it takes is a quick grep through the logs...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group