Archive for the ‘Linux OS’ Category

SSH ERROR No Hostkey Alg

July 18th, 2021, posted in Solaris
Share

Do not ever change the file permissions of rsa and dsa keys. I was working on troubleshooting some ssh issue and I decided to give read permissions to everyone on file /etc/ssh/ssh_host_rsa_key and the next thing I know I cant login to the server via ssh.

#ssh testbox01
no hostkey alg

#ls -l /etc/ssh/ssh_host_rsa_key
-rw——-. 1 root ssh_keys   1679 Nov 25  2014 ssh_host_rsa_key

#ls -l /etc/ssh/ssh_host_dsa_key
-rw——-   1 root     root         668 Aug 20  2007 /etc/ssh/ssh_host_dsa_key

#ls -l /etc/ssh/ssh_host_rsa_key.pub
-rw-r–r–. 1 root root        382 Nov 25  2014 ssh_host_rsa_key.pub
#ls -l /etc/ssh/ssh_host_dsa_key.pub
-rw-r–r–. 1 root root        382 Nov 25  2014 ssh_host_dsa_key.pub
Make sure the permissions are set to 0600 for the private ssh keys and 0644 for public ssh keys(default public keys under /etc/ssh ends with an extension .pub)
Share

Increase Bash History Size

June 10th, 2021, posted in Solaris
Share

Add A User From The Command Line In Solaris,Add A User From The Command Line In Solaris 10,Add A User From The Command Line, In Solaris10 ,Add A User ,The Command Line In Solaris10,The Command Line In Solaris,solaris 10,

Add this to your .profile or .bash_profile to increase the history size to 10000

export HISTFILESIZE=10000

Share

Switch Between the ALOM CMT Shell and the Host Console

April 25th, 2021, posted in Solaris
Share

Switch Between the ALOM CMT Shell and the Host Console

  1. To switch from the ALOM CMT shell to the host console, type:

    SC> console
    host>
  2. To switch from the console to the ALOM CMT shell, type hash-period:

    host> #.
    sc>
Share

Checking Last 10 Reboots of a Solaris Server

March 28th, 2021, posted in Solaris
Share

 

On your Solaris boxes here, you’d need to doChecking Last 10 Reboots of a Solaris Server,Checking Last 10 Reboots, Solaris Server,Last 10 Reboots of a Solaris Server,Reboots of a Solaris Server,Reboots of a Solaris,Sys DBA,DBA,Reboot
last -10 reboot to actually get the times that the system was rebooted.
As it shows the system down messages, as well as the boot messages.

 

 

root@immam # last -10 reboot
reboot system boot Sun Aug 16 10:53
reboot system down Sun Jun 14 08:50
reboot system boot Sun Jun 14 08:17
reboot system down Mon Mar 2 12:44
reboot system boot Mon Jan 27 10:23
reboot system down Sun Jan 26 13:15
reboot system boot Sun Jan 26 12:36
reboot system down Wed Jan 22 14:40
reboot system boot Mon Jan 20 13:55
reboot system down Mon Jan 20 12:59
Share

SWITCH BETWEEN ALOM AND ILOM ON SPARC TSERIES SERVER

March 14th, 2021, posted in Solaris
Share

Switching between ALOM and ILOM is applicable on SPARC Servers (T-Series)

SWITCH FROM ILOM TO ALOM :
If you have logged to ilom as a root user (you may be logged in as different user) and you want to switch to ALOM then run this below command, logout and log back in.

->set /SP/users/root cli_mode=alom

SWITCH FROM ALOM TO ILOM :
If you have logged to alom shell as a root user (you may be logged in as different user) and you want to switch to ILOM shell then run the below command, logout and log back in.

sc>userclimode root default
Share