LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-02-2012, 09:14 AM   #1
LittleMaster
Member
 
Registered: Jun 2012
Posts: 121
Blog Entries: 1

Rep: Reputation: Disabled
How can i make login as root in telnet service


Hi
Whether there is any possibity to login root user using telnet.
Im looking for alternative for ssh login in case any ssh failure.i have to capture my remote server using telnet service .
 
Old 08-02-2012, 09:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Don't don't don't don't don't do this. never run telnet.

If you want to deliberately run an insecure network service that is widely discredited you can install the telnet-server package (or equivalent name) and edit the config file, which is probably /etc/xinetd.d/telnet to fine tune the settings.

You really should NEVER be able to log in remotely as root, even over SSH. Use a normal user account, and then elevate to root once logged in. Root over telnet would not be something a good sysadmin would ever willingly do.
 
Old 08-02-2012, 09:46 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
If you really want to mitigate against SSH failure then invest in a remote management card for your server which will at least allow you "direct" console access in the event of a daemon failure or see if your hosting provider will provide some form of KVM over IP access.
 
Old 08-02-2012, 10:55 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Added to the above abut not running telnet and not logging in as root directly I like the idea of moving SSH to a high port, if you're not already -- especially if you must log in as root for some reason.
 
Old 08-02-2012, 11:49 AM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths
If you really want to mitigate against SSH failure then invest in a remote management card for your server which will at least allow you "direct" console access in the event of a daemon failure or see if your hosting provider will provide some form of KVM over IP access.
Exactly.

Just as you don't remove one of your living room walls (in case your front-door lock stops working), you don't enable a clear-text protocol service (in case sshd stops working).

If you cannot install a remote management device, then work with your hosting provider for a plan to address this sort of scenario. It may involve a person physically logging into your server to assist you.
 
Old 08-03-2012, 01:40 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by 273 View Post
Added to the above abut not running telnet and not logging in as root directly I like the idea of moving SSH to a high port, if you're not already -- especially if you must log in as root for some reason.
https://www.owasp.org/index.php/Avoi...y_by_obscurity
 
Old 08-03-2012, 05:58 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by acid_kewpie View Post
It's not security through obscurity in that sense at all. Try going through an auth.log from an SSH server on port 22 looking for succesful brute force attacks compared to one on port 2022. It's pretty much certain your SSH server on the standard port will get hundreds of script kiddies "testing the door handle". Yes, of course, use fail2ban or others but moving the port saves a little time when going through logs and leaves you to concentrate on the more serious attempts.

Last edited by 273; 08-03-2012 at 05:59 AM.
 
  


Reply



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
How to login to server even ssh & Telnet service down jayakumar01 Linux - Server 1 12-27-2011 01:02 PM
hi,I enable the krb5-telnet service,but root user can't login hodge Linux - Newbie 2 07-17-2007 12:21 AM
login as root through telnet Sir_George Linux - Security 2 07-20-2006 04:57 PM
Can't login with TELNET for ROOT sjcollier Linux - Newbie 5 08-17-2003 03:07 PM
Login thru telnet as root uprichard Linux - Security 11 05-09-2002 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:32 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
Open Source Consulting | Domain Registration