To enable/allow root login from SSH you must complete the following three steps after ensuring that you really want to enable root ssh access.
How to setup Solaris 10 ldap client and glue it with ssh. Recently I wrote a post about configuring OpenLDAP server with TLS support using RHEL available here. There I also mentioned how to setup Linux to authenticate against a LDAP server. But I didn’t said a word about Solaris.
- So because ssh key is working for ldap users on Linux I compared Linux /etc/nsswitch.conf to Solaris 10 and the only difference I saw is that there is no ref of shadow Solaris 10: # the following two lines obviate the '+' entry in /etc/passwd and /etc/group.
- Restart SSH Server. #svcadm disable ssh #svcadm enable ssh OR # svcadm restart ssh. Try to connect again: email protected $ ssh -v -o GSSAPIAuthentication=no -l pirat9 192.168.1.134 OpenSSH5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 debug1: Reading configuration data /etc/ssh/sshconfig debug1: /etc/ssh/sshconfig line 19: Applying options for. debug1: Connecting to 192.168.1.134.
- Change PermitRootLogin from no to yes in: /etc/ssh/sshd_config
(you will need super user access to edit this file.) - Restart SSHD: /lib/svc/method/sshd restart
———————————————————————————–
After fresh Install of Solaris OS , You will not be able to login directly as root with Putty as its disabled.
To enable the same follow below steps.
1) Login as oracle/any other user from putty and follow from point 3) to enable direct root login.
To enable the same follow below steps.
1) Login as oracle/any other user from putty and follow from point 3) to enable direct root login.
OR
2) Login as root from GUI console and follow from point 3) to enable direct root login.
3) Switch user to root
-bash-3.00$ su –
Password:
Oracle Corporation SunOS 5.10 Generic Patch January 2005
Password:
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# ls -ltr /etc/default/login
-r–r–r– 1 root sys 2258 Aug 6 2010 /etc/default/login
-r–r–r– 1 root sys 2258 Aug 6 2010 /etc/default/login
# cp -pr /etc/default/login /etc/default/login.old
#
# ls -ltr /etc/default/login*
-r–r–r– 1 root sys 2258 Aug 6 2010 /etc/default/login.old
-r–r–r– 1 root sys 2258 Aug 6 2010 /etc/default/login
#
#
# ls -ltr /etc/default/login*
-r–r–r– 1 root sys 2258 Aug 6 2010 /etc/default/login.old
-r–r–r– 1 root sys 2258 Aug 6 2010 /etc/default/login
#
Comment the below parameter
vi /etc/default/login
#CONSOLE=/dev/console
vi /etc/default/login
#CONSOLE=/dev/console
backup the file /etc/ssh/sshd_config
# ls -ltr /etc/ssh/sshd_config
-rw-r–r– 1 root sys 5025 Aug 6 2010 /etc/ssh/sshd_config
#
# ls -ltr /etc/ssh/sshd_config
-rw-r–r– 1 root sys 5025 Aug 6 2010 /etc/ssh/sshd_config
#
cp -pr /etc/ssh/sshd_config /etc/ssh/sshd_config.old
# ls -ltr /etc/ssh/sshd_config*
-rw-r–r– 1 root sys 5025 Aug 6 2010 /etc/ssh/sshd_config.old
-rw-r–r– 1 root sys 5025 Aug 6 2010 /etc/ssh/sshd_config
#
# ls -ltr /etc/ssh/sshd_config*
-rw-r–r– 1 root sys 5025 Aug 6 2010 /etc/ssh/sshd_config.old
-rw-r–r– 1 root sys 5025 Aug 6 2010 /etc/ssh/sshd_config
#
Change the below parameter from “no” to “yes” as below
vi /etc/ssh/sshd_config
vi /etc/ssh/sshd_config
#PermitRootLogin no
PermitRootLogin yes
PermitRootLogin yes
Restart ssh service
svcadm restart ssh
svcadm restart ssh
How To Enable Ssh Windows
************************* End of task *************************
Comments
comments
Tags: Allow root SSH login for Solaris 10, Enable direct root Logins, Enable direct root Logins for Solaris 10, Enable direct root Logins for Solaris 10 or Allow root SSH login for Solaris 10, Linux commands, root SSH login for Solaris 10, SSH login for Solaris 10
OpenSSH is a free opensource version of the SSH connectivity tools. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks unlike Telnet,rlogin or ftp where the data is not encrypted and transmitted in plain text. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.
Solaris 10 is by default installed with SSH server and the clients. However, if you have chosen to ignore SSH at the time of installation or have started the install with a minimal install then you may need to install OpenSSH manually.
The easiest way to install OpenSSH in Sun Solaris is to use the pre-compiled packages from sunfreeware.
The following are the packages that are required to be installed for OpenSSH to work properly in Solaris 10:
To start of, download the packages from the following sunfreeware.com links for Sun Solaris 10 X86 platform:
gcc
Zlib
OpenSSL
OpenSSH
Once done, upload the files onto the server so we can start to unzip the files and install.
Unzip and install gcc
solaris10# gunzip libgcc-3.4.6-sol10-x86-local.gz
solaris10# pkgadd -d libgcc-3.4.6-sol10-x86-local
…
…
Installation of <SMCgcc> was successful.
…
Installation of <SMCgcc> was successful.
Unzip and install zlib
solaris10# gunzip zlib-1.2.3-sol10-x86-local.gz
solaris10# pkgadd -d zlib-1.2.3-sol10-x86-local
…
…
Installation of <SMCzlib> was successful.
…
Installation of <SMCzlib> was successful.
How To Enable Ssh In Solaris 10 Command
Unzip and install OpenSSL
solaris10# gunzip openssl-0.9.8f-sol10-x86-local.gz
solaris10# pkgadd -d openssl-0.9.8f-sol10-x86-local
…
…
Installation of <SMCossl> was successful.
…
…
Installation of <SMCossl> was successful.
Unzip and install OpenSSH
solaris10# gunzip openssh-4.7p1-sol10-x86-local.gz
solaris10# pkgadd -d openssh-4.7p1-sol10-x86-local
…
…
Installation of <SMCossl> was successful.
…
…
Installation of <SMCossl> was successful.
The packages are now installed.
Create /var/empty directory
solaris10# mkdir /var/empty
Change directory ownership to Root user and sys group
solaris10# chown root:sys /var/empty
Change permissions
solaris10# chmod 755 /var/empty
Add sshd user & group
How To Enable Ssh In Solaris 10 Os
solaris10# groupadd ssh
solaris10# # useradd -g sshd -c ‘sshd privsep’ -d /var/empty -s /bin/false sshd
Edit the default /usr/local/sshd_config file and make the following changes:
Replace the line
Subsystem sftp /usr/libexec/sftp-server
with
Esxi How To Enable Ssh
Subsystem sftp /usr/local/libexec/sftp-server
![How to enable ssh in solaris 10 command How to enable ssh in solaris 10 command](/uploads/1/1/8/4/118402850/466734594.jpg)
How To Enable Ssh In Solaris 10 Commands
Generate Keys for the server
solaris10# ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N “”
solaris10# ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N “”
solaris10# ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N “”
solaris10# ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N “”
solaris10# ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N “”
Enable OpenSSH server daemon sshd to run at the system startup
Edit /lib/svc/method/sshd file and change the path for the SSH DIR, KEYGEN & the start daemon as follows:
Enable Ssh On Windows 10
SSHDIR=/usr/local/etc/ssh
KEYGEN=”/usr/local/bin/ssh-keygen -q”
KEYGEN=”/usr/local/bin/ssh-keygen -q”
How To Enable Ssh Linux
‘start’)
/usr/local/sbin/sshd
/usr/local/sbin/sshd
That is it. All done and ready to go. Try connecting to the server using a ssh client like PUTTY.