LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-09-2003, 07:14 AM   #1
mairul
Member
 
Registered: Sep 2003
Location: In front of my LAN
Distribution: Redhat
Posts: 82

Rep: Reputation: 15
telnet for root


How can I enable "telnet" for root..

thanks.....


Last edited by mairul; 10-09-2003 at 07:17 AM.
 
Old 10-09-2003, 07:22 AM   #2
glj
Member
 
Registered: Jul 2001
Location: London
Distribution: RH 9
Posts: 151

Rep: Reputation: 30
You shouldn't.
Firstly try not to use telnet, use SSH instead.
Either way you use, login as a normal user and then 'su' to gain root privileges.
The reason is you don't want anyone to catch you typing your root password over a network connection. Telnet is terrible because is sends everything in plain text. SSH will encrypt the data, so when you're typing in your root password using su it's harder for anyone to listen to what you're typing.
glj
 
Old 10-09-2003, 07:27 AM   #3
mairul
Member
 
Registered: Sep 2003
Location: In front of my LAN
Distribution: Redhat
Posts: 82

Original Poster
Rep: Reputation: 15
Pls..tell me..what I have to do.. to use SSH...
 
Old 10-09-2003, 07:31 AM   #4
glj
Member
 
Registered: Jul 2001
Location: London
Distribution: RH 9
Posts: 151

Rep: Reputation: 30
The website for ir is here: www.openssh.org
You'll probably find it's already installed - depends on the distribution you're using. Give some more details on what flavour of Linux you're using (Red Hat, Mandrake etc) and someone will be able to help you. Google for information as well.
I'm afraid I'm just about to leave work so I can't help any more now. Sorry!
glj
 
Old 10-09-2003, 07:35 AM   #5
mairul
Member
 
Registered: Sep 2003
Location: In front of my LAN
Distribution: Redhat
Posts: 82

Original Poster
Rep: Reputation: 15
I have redhat 7.3....pls help me....
 
Old 10-09-2003, 08:17 AM   #6
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
whatever u do, dont use telnet.
http://www.linuxquestions.org/questi...2001/06/2/3276
 
Old 10-09-2003, 09:08 AM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
redhat, hmm, that should be rather simple then to enable ssh

all you have to do is ope a console as root and tye 'setup' at the root prompt then from that menu select 'system services'
from there you want to find the entry 'sshd' and make sure it's checked (with the space bar)
then hit the ok button then the quit button, sshd should now be running , and it will aslo automatically be enabled on reboot as well
 
Old 10-09-2003, 09:10 AM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
another bonus of ssh is it can be set to provide X forwarding so if you have another linux box running X or an X server for win/mac, then you can run alot of your X progs via ssh as well
 
Old 10-09-2003, 05:17 PM   #9
xuniLUser
LQ Newbie
 
Registered: Jul 2003
Location: $HOME
Distribution: RedHat, Knoppix
Posts: 6

Rep: Reputation: 0
Hello Mairul,

As everybody else has been telling you, try not use telnet and especially as root. If you want to know if ssh is running type:
pgrep sshd
If you get a set of process numbers displayed anything like 1743 then it must be up and running. Then, if you had an account on the remote box called mickeymouse then you will type
ssh -l mickeymouse hostname

If it is your first login you will then be asked to type yes/no if you want to verify login. After typing yes you will be asked for the password.

By now you should be logged on.

The -l is a letter L and not a number 1
An alternative check for sshd is to type while not as root
/sbin/chkconfig --list
Look in the list and you should see something like
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Last note is that the --list is 2 dashes not 1 dash.

Last edited by xuniLUser; 10-09-2003 at 05:19 PM.
 
Old 10-10-2003, 10:19 AM   #10
mairul
Member
 
Registered: Sep 2003
Location: In front of my LAN
Distribution: Redhat
Posts: 82

Original Poster
Rep: Reputation: 15
when i give pgrep sshd then it shows.......1023....

is it alright...
 
Old 10-10-2003, 01:37 PM   #11
zer0python
Member
 
Registered: Sep 2003
Posts: 104

Rep: Reputation: 20
Yeah, that's alright, that number is just the process id, anyway..I just wanted to say that, if your trying to access the ssh daemon from a windows box, the client to use would be putty..I noticed nobody put that...you could probably used google to find that out though, heh
 
Old 10-10-2003, 04:07 PM   #12
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
Another thing to do since you're now on your way to becoming security mindful, is to run ntsysv and uncheck services/daemons you don't need. This will heighten security as well as free up more system resources.

Red Hat turns on a lot of uneeded stuff by default, so you'll probably want to tighten things down a bit.

Leave ssh running for remote access. I would make sure you have the most recent version however.

You can find out which version you're running by issuing ssh -V (note the capital 'V') from a command prompt/line.

You can either compile a newer version or grab the latest rpm from www.redhat.com.
 
Old 10-14-2003, 02:30 PM   #13
xuniLUser
LQ Newbie
 
Registered: Jul 2003
Location: $HOME
Distribution: RedHat, Knoppix
Posts: 6

Rep: Reputation: 0
Hello Mairul,

Sorry for not getting back to you sooner - too busy at work.

Indeed as Zer0python and Deoren have mentioned the number returned from pgrep is a process id which shows it is running. So from a terminal window you can type

ssh -l mmouse host

In case you want to ssh from a windows box the url for PuTTY is below.

http://www.chiark.greenend.org.uk/~sgtatham/putty/
 
Old 10-29-2003, 05:42 PM   #14
Mack88
LQ Newbie
 
Registered: Oct 2003
Distribution: RH9.0
Posts: 2

Rep: Reputation: 0
Thumbs up

Hello All,

I am an absolute newbie re Linux and my box has lost contact via keyboard (I think that the screensaver has locked up). Thanks for the discussion and tip/url re putty - I am now at least able to communicate with the box. Now to fix the problem without shutting down the phones...

Cheers

Mack
 
Old 11-03-2003, 11:27 PM   #15
xuniLUser
LQ Newbie
 
Registered: Jul 2003
Location: $HOME
Distribution: RedHat, Knoppix
Posts: 6

Rep: Reputation: 0
Hi Mack88,

Glad the url/tip helped regarding PuTTY. Not sure I can help you with the keyboard problem. Try posting a new thread in the Forum to 'bump' your question to the top.
 
  


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
Telnet as Root? stath Linux - Networking 4 03-30-2005 02:19 PM
disabling su to root from telnet subhasis_ray Linux - Security 6 02-11-2003 06:04 AM
Telnet login as root macone Linux - Security 7 11-13-2002 05:39 AM
Root Telnet Access AtulGore Linux - Networking 5 11-21-2001 10:32 PM
Cannot telnet as root bunghole Linux - Networking 5 11-02-2001 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 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