• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris : How to enable ssh login for root user after a fresh install

By admin

By default when you install a fresh solaris 10 operating system, the root user does not have an ssh login access to the system. This is done for security purposes and it is a default setting. So if you want to login to your system as root user, you have to first login as a normal non-root user and then do a switch user (su -) to root user. To remove this restriction follow the steps shown below.

1. Please check the sshd configuration file /etc/ssh/sshd_config and make sure PermitRootLogin is set to yes as shown below.

# vi /etc/ssh/sshd_config
PermitRootLogin yes
Note : SSH root user login is disabled by default if the PermitRootLogin line is not present

2. Once you have modified the file to have the parameter, restart the ssh service for the changes to take effect.

# svcadm restart ssh

3. If the parameter AllowUsers is set as well, it is necessary to add user “root” to the list of AllowUsers list as shown below.

# vi /etc/ssh/sshd_config
AllowUsers user01 user02 root

This usually is not required as the AllowUsers parameter line is by default hashed out.

Filed Under: Solaris

Some more articles you might also be interested in …

  1. Solaris 10 boot process : SPARC
  2. How to Use the ‘truss’ Command for Program and Error Analysis in Solaris
  3. Solaris 11 : Setting user and group quota for ZFS datasets
  4. Solaris : Troubleshooting startup (rc init) scripts
  5. Creating network interface alias for network boot or jumpstart installation at OBP
  6. How to measure NIC Performance/Throughput in Solaris 11 using iftop
  7. How to Configure TCP Keepalive option in Solaris
  8. Solaris : How to include date and timestamp in bash shell command history
  9. The ultimate Solaris sendmail troubleshooting guide
  10. How to send mails with attachments using the solaris mailx command

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary