LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-13-2007, 06:40 AM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 280

Rep: Reputation: 17
ssh problem


Hi,

I want Direct root login should be disabled for that i have modify the sshd_config file permit root login no but after restarting the ssh service still i am able to login as root directly

Any idea?
 
Old 11-13-2007, 07:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
well show us the config, and we'll see... also how did you restart the service?
 
Old 11-13-2007, 10:33 PM   #3
manoj.linux
Member
 
Registered: Aug 2007
Posts: 280

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by acid_kewpie View Post
well show us the config, and we'll see... also how did you restart the service?
Thanks for your quick response, i have restarted the service using service sshd restart command, in the sshd_config file it was commented out permit root login,, i have removed that comment and insted of yes i have replaced with no
 
Old 11-14-2007, 05:20 AM   #4
manoj.linux
Member
 
Registered: Aug 2007
Posts: 280

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by manoj.linux View Post
Thanks for your quick response, i have restarted the service using service sshd restart command, in the sshd_config file it was commented out permit root login,, i have removed that comment and insted of yes i have replaced with no

I am using Red Hat Linux release 9
 
Old 11-14-2007, 06:07 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
That sounds right. Did you edit the /etc/sshd_config in the target ssh server & restart the service there?

I'm just wondering if you got the client and server hosts mixed up, because that edit and restarting the service should have worked. Also, exactly how were you able to log in. If you started as root but entered: ssh user@host, you will be logging in as "user" and not root.
 
Old 11-15-2007, 03:24 AM   #6
manoj.linux
Member
 
Registered: Aug 2007
Posts: 280

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by jschiwal View Post
That sounds right. Did you edit the /etc/sshd_config in the target ssh server & restart the service there?

I'm just wondering if you got the client and server hosts mixed up, because that edit and restarting the service should have worked. Also, exactly how were you able to log in. If you started as root but entered: ssh user@host, you will be logging in as "user" and not root.
I am using putty thorugh which i am login on server as a root then I have removed the comment #PermitRoot login yes and replaced with Permit root Login No after that I have restarted the service service sshd stop and start

After that I have opened another session using putty there i have tried but not Succeeded,
 
Old 11-15-2007, 03:35 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Quote:
After that I have opened another session using putty there i(sic) have tried but not Succeeded,
If what you tried to do is log in as root and it didn't work, then your changes on the server were successful.
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
SSH problem - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 03:47 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 07:56 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:04 AM.

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