Difference between revisions of "Server cesurity"

From Ilianko
m
Line 25: Line 25:
  
 
AllowUsers username
 
AllowUsers username
 +
 +
 +
==LAMP==
 +
 +
apt-get install mysql-server
 +
 +
  heirloom-mailx libaio1 libclass-isa-perl libdbd-mysql-perl libdbi-perl
 +
  libhtml-template-perl libmysqlclient18 libnet-daemon-perl libplrpc-perl
 +
  libswitch-perl mysql-client-5.5 mysql-common mysql-server mysql-server-5.5
 +
  mysql-server-core-5.5 perl perl-modules psmisc

Revision as of 10:19, 19 April 2014

Вход с ключ

Ssh login без парола


Деактивиране на root

може да се ползва sudo или да махнем ssh root login

vi /etc/ssh/sshd_config

   #LoginGraceTime 2m
   #PermitRootLogin no
   #StrictModes yes
   #MaxAuthTries 6

Make the line look like this to disable logging in through ssh as root.

   PermitRootLogin no

Now you’ll need to restart the sshd service:

   /etc/init.d/sshd restart

pozwolqvane na xxx

AllowUsers username


LAMP

apt-get install mysql-server

 heirloom-mailx libaio1 libclass-isa-perl libdbd-mysql-perl libdbi-perl
 libhtml-template-perl libmysqlclient18 libnet-daemon-perl libplrpc-perl
 libswitch-perl mysql-client-5.5 mysql-common mysql-server mysql-server-5.5
 mysql-server-core-5.5 perl perl-modules psmisc