LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   ssh problem (https://www.linuxquestions.org/questions/linux-enterprise-47/ssh-problem-599288/)

manoj.linux 11-13-2007 06:40 AM

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?

acid_kewpie 11-13-2007 07:02 AM

well show us the config, and we'll see... also how did you restart the service?

manoj.linux 11-13-2007 10:33 PM

Quote:

Originally Posted by acid_kewpie (Post 2957393)
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

manoj.linux 11-14-2007 05:20 AM

Quote:

Originally Posted by manoj.linux (Post 2958200)
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

jschiwal 11-14-2007 06:07 AM

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.

manoj.linux 11-15-2007 03:24 AM

Quote:

Originally Posted by jschiwal (Post 2958502)
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,

jschiwal 11-15-2007 03:35 AM

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.


All times are GMT -5. The time now is 11:41 PM.