LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-19-2005, 09:46 AM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Disable Root login via ssh


Solaris 10 is installed on my SUNWS.
I sucessfully installed ssh and can ssh my sunws from windows.
But I want to disable root login because the root login is not preferred.
The following is what I have done:
# vi /etc/ssh/sshd_config
<1>Edit the PermitRootLogin configuration.
PermitRootLogin no

<2> restart sshd process
# ps -ef | grep sshd
# kill sshd_process_id
# /usr/local/sbin/sshd

However, I also can remotely login my SUNWS from winxp via ssh.
I wonder the reason because I have set the PermitRootLogin to no.
Thanks!
 
Old 10-19-2005, 01:13 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Have you checked the manual page for this PermitRootLogin parameter usage ?
 
Old 10-20-2005, 03:47 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
By default root login is disabled. Check again /sshd_config. You can also delete (or rename) the .ssh subdirectory under the root's homedir.
To restart the service it's better to use:
Code:
/etc/init.d/sshd stop
/etc/init.d/sshd start
 
Old 02-09-2007, 03:18 AM   #4
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Sorry, I forget to tell you I use telnet to login the server not ssh.
I know that ssh has PermitRootlogin to disable the root remote login.

I edit the /etc/default/login as follows.

CONSOLE=0

Then, I disable the root login from console. I wonder whether other methods else is available.

Thanks
Best Regards.
 
  


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
disable root login via ssh with one exeption inoxtech Linux - Security 3 06-30-2005 12:28 PM
disable root login with ssh linuxtesting2 Slackware 3 02-16-2005 01:33 PM
How can I disable root to ssh Soulstealer Linux - Security 2 12-12-2004 12:36 PM
How can I disable root login with SSH? blk96gt Slackware 9 10-02-2004 08:09 AM
SSH/Telnet, disable root login, how? muhazam Linux - Security 6 08-17-2004 01:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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