LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-28-2006, 10:32 PM   #1
_ AsiF
Member
 
Registered: Nov 2006
Location: Malaysia
Posts: 47

Rep: Reputation: 15
Unhappy Telnet Login


Greetingzzz....

The thing is I can log on to Linux machine from XP through Telnet using a user account but can't using root. I'm using the same root account including the same root password. But while I'm logged on as normal user, then if i use the 'su' command it prompts for password and that time the root password does work.

Why is that and how can log in as root from XP? THANX.

Damn, now got new problem, the connection is lost after a while if i don't do anything. The connection just automatically closes. What is this bullllsss???

Last edited by _ AsiF; 11-28-2006 at 10:51 PM.
 
Old 11-28-2006, 11:10 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,113

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
(1) Logging on using telnet is a very bad idea as your password is transmitted in plain text. Therefore it's a very very bad idea to login as root using telnet. You should use SSH instead. If you absolutely must log in as root using telnet, you'll have to edit the /etc/securetty file and add some of the virtual terminals like pts/0, pts/1, etc. (ttyp0, ttyp1, etc. on systems not using Unix98 style PTYs). As I said above this is not a good idea except in certain highly trusted environments.

(2) Do you have auto-logout set in your shell? is there an intervening firewall that could close the connection after a certain amount of time with no traffic?
 
Old 11-28-2006, 11:45 PM   #3
_ AsiF
Member
 
Registered: Nov 2006
Location: Malaysia
Posts: 47

Original Poster
Rep: Reputation: 15
Unhappy

Dear btmiller,

I added some more terminals but still the same problem. Also my Linux Firewall is Off and how will i check that if auto-logout is set or not? i checked 'env' and there was nothing like auto-logout thing. Could it be that XP is cutting the connection?

Here is my penultimate session:

Fedora Core release 1 (Yarrow)
Kernel 2.4.22-1.2115.nptl on an i686
login: root
Password:
Login incorrect

login: asif
Password:
Last login: Wed Oct 29 13:34:45 from 172.16.113.77
[asif@localhost asif]$ ls
z.txt z.txt~
[asif@localhost asif]$ ls

Connection to host lost.

** Note that i was inactive for around 3 minutes.

And This my last session:

Fedora Core release 1 (Yarrow)
Kernel 2.4.22-1.2115.nptl on an i686
login: a

Connection to host lost.

** see, even before start typing the connection was lost.

Last edited by _ AsiF; 11-28-2006 at 11:46 PM.
 
Old 11-29-2006, 12:58 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Step 1: Download PuTTY
Step 2: Forget about telnet entirely and use only SSH (PuTTY). telnet is entirely unsafe and anyone knowledgable will giggle at you for using telnet. You might as well learn how to do things The Right Way(tm) the first time around, rather than having to unlearn the wrong way first.
 
Old 11-29-2006, 02:33 AM   #5
_ AsiF
Member
 
Registered: Nov 2006
Location: Malaysia
Posts: 47

Original Poster
Rep: Reputation: 15
I tried to use putty, but never succeded. All kinds of err. Damn.
 
Old 11-29-2006, 03:29 AM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Well post the errors you had with PuTTY so you can fix the right thing. Fixing telnet is like fixing a broken self-destruct button that has already been pressed.
 
Old 11-29-2006, 04:16 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
I agree with previous posters with regards to telnet access (unless it's for a box in your own local network at home or, as indicated by btmiller, a highly trusted network).

Root access using telnet is probably blocked (and I don't know where it can be set). As you have access as normal user, use that and next su to root.

Even if you use SSH, you should use that approach (block direct root access) as it creates an additional barrier for attackers.
 
Old 11-30-2006, 03:11 AM   #8
_ AsiF
Member
 
Registered: Nov 2006
Location: Malaysia
Posts: 47

Original Poster
Rep: Reputation: 15
Guys, Nothing much to say, just fired up the machines and putty was working just fine. networking sometimes is a great mystrey.

ANYWAYS, THANX TO ALL YOU GUYS.
 
Old 01-10-2008, 06:50 PM   #9
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
telnet

Quote:
Originally Posted by btmiller View Post
you'll have to edit the /etc/securetty file and add some of the virtual terminals like pts/0, pts/1, etc. (ttyp0, ttyp1, etc. on systems not using Unix98 style PTYs).
Thanks Man
It was a great help !!!

One more thing, file permission for /etc/securetty should be 644 only...
I had tried with 777 and had run into problem.

One point as a side note, in most of the posts, i found that people suggesting SSH to use... I really dont understand when someone is asking to solve telnet problem, ppl are trying to sidetrack the problem rather than helping on this front....

Last edited by vkmgeek; 01-10-2008 at 08:18 PM.
 
  


Reply

Tags
root login, telnet


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
login as root through telnet Sir_George Linux - Security 2 07-20-2006 04:57 PM
Wish to know about how to do remote login through telnet sharad Linux - Networking 1 03-08-2006 08:12 AM
Auto login with telnet taureanyang Programming 2 06-14-2005 01:33 AM
remote login via telnet metric_electric Linux - Security 5 06-03-2005 03:24 PM
no login prompt in telnet bilal.shaikh Linux - Newbie 1 11-13-2003 12:02 PM


All times are GMT -5. The time now is 01:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration