Posts

Showing posts from March, 2019

How to Secure the SSH access

1> Default Port The default port is 22, you might change to other port, such as 2222 Edit the configuration file /etc/ssh/sshd.conf. and change the following: #Port 22 to Port 2222 2> Configure ssh private/public key with private passphrase enable (As the amazon way) ssh-keygen -t rsa -b 2048 Generating public/private rsa key pair. Enter file in which to save the key (/home/johndoe/.ssh/id_rsa): /home/johndoe/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/johndoe/.ssh/id_rsa. Your public key has been saved in /home/johndoe/.ssh/id_rsa.pub. The key fingerprint is: SHA256:fMKdGYWBTW0R4V4EUFN6X39Xcg2xLZKJ/ffGyE0QdMc johndoe@xxx.xxx The key's randomart image is: +---[RSA 2048]----+ |         ++*OBBoo| |        . o=o* *E| |          o.B B *| |       o . = = *+| |        S = . . B| |         o   . *+| |              o =| |           

Solaris 11 package management ZFS mirror beadm backup

root# pkg install consolidation/java-8/java-8-incorporation@1.8.0.201.9,5.11 Creating Plan (Solver setup): \ pkg install: No matching version of consolidation/java-8/java-8-incorporation can be installed: can be installed:   Reject:  pkg://solaris/consolidation/java-8/java-8-incorporation@1.8.0.201.9-0 pkg://solaris/consolidation/java-8/java-8-incorporation@1.8.0.201.9-0   Reason:  This version is excluded by installed incorporation entire@0.5.11-0.175.3.36.0.7.0 incorporation entire@0.5.11-0.175.3.36.0.7.0 root# pfexec pkg change-facet facet.version-lock.consolidation/java-8/java-8-incorporation=false false             Packages to change:   1 change:   1      Variants/Facets to change:   1       Create boot environment:  No Create backup boot environment: Yes PHASE                                         ITEMS                         ITEMS Removing old actions                             1/1                    1/1 Updating package state database