Unix‎ > ‎


Mem handling 
ps axo %mem,rss
ps axo rss,pid,euser,cmd | grep oracle |  awk '{ sum+=$1} END {print sum}'

Create private key
cat id_rsa.pub >> ~/.ssh/authorized_keys
rm id_rsa.pub

permissions to be:

  • .ssh directory: 700 (drwx------)
  • public key (.pub file): 644 (-rw-r--r--)
  • private key (id_rsa): 600 (-rw-------)
  • lastly your home directory should not be writeable by the group or others (at most 755 (drwxr-xr-x)).

RSAAuthentication yes
PubkeyAuthentication yes 
PasswordAuthentication no

Disable root login and password based login
$ sudo vi /etc/ssh/sshd_config

ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
PermitRootLogin no

$ sudo systemctl reload ssh