Urtech.id

Learning By Doing


Restrict SSH Logins by User and Client Address on CentOS / RHEL

How to restrict ssh logins by user and client address on CentOS/RHEL CentOS/RHEL 7 allows nested configuration in " /etc/ssh/sshd_config ". The following is an example :sudo nano /etc/ssh/sshd_configAdd the following line :AllowUsers user1The following example demonstrates that the user “testuser” can be logged in from 10.0.0.1 only, and the rest of the listed users can login from any host. Note that you need to list all the users who can be allowed to login, which is the downside of ...

Tito Santana

Solving Nginx: 413 – Request Entity Too Large Error and Solution

The error “413 – Request Entity Too Large” indicates that web server configured to restrict large file size. Nginx can be set to allow the maximum size of the client request body using client_max_body_size directive. If the size of a request exceeds the configured value, the 413 (Request Entity Too Large) error returned to the client.You need to configure both nginx and php to allow upload size.1. Nginx ConfigurationTo fix this issue edit your nginx.conf. Open the Terminal or login ...

Tito Santana

Configure Different User Per Virtual Host on Nginx

For security reasons, you shouldn’t run all your NGINX virtual hosts with the same user. If you run all your websites with the same user ( www-data or nginx ), a PHP call to " system() / passthru() / exec() " will have access to all websites! Nginx will not protect you against this. PHP is just an example, but any popular web-server language has similar calls. As a hacker, you can “ls ..” to navigate through all websites and “cp / echo / mv ” to write your own code in any fi...

Tito Santana

How to Configure DNS Server in VPS CentOS 7

This detailed tutorial will help you to set up a local DNS server on your CentOS 7 system Install bind package :yum install bind bind-utils -y Backup and open configuration file : cp /etc/named.conf /etc/named.conf.backup nano /etc/named.conf Add the lines : listen-on port 53 { 127.0.0.1; 103.129.221.94; }; allow-query { localhost; 103.129.221.94; any; }; allow-query-cache { localhost; 103.129.221.94; any; }; the result like image below : Still in the same file, add the lines...

Tito Santana

Create new user in MySQL and give it access to database

This article describes how to do common MySQL database administration tasks from the command line using the mysql program. Try this to create new user in MySQL and give it access to database: CREATE USER 'username'@'hostname'; set password for 'username'@'localhost' = PASSWORD('password');  Try this to give it access to the database dbname : GRANT ALL PRIVILEGES ON dbname.* To 'username'@'hostname' IDENTIFIED BY 'password'; or with grant option :GRANT SELECT, INSERT, UPDATE, DELETE,...

Tito Santana

How to create users and groups in CentOS 7

Adding and removing users is one of the most basic tasks that you should know how to do Create a new user: adduser username replace username with the user that you want to create. Give your user a password so that they can log in: passwd username You will be prompted to type in the password twice to confirm it. Now your new user is set up and ready for use! You can now log in as that user, using the password that you set up.  Create a new group: groupadd groupname  List users in gr...

Tito Santana

3 Cara Menginstall Aplikasi Berekstensi .deb di Ubuntu Melalui Terminal

Linux memiliki cara penginstalan yang berbeda dan ini beberapa cara untuk menginstall linux menggunakan Terminal atau Command Line 1. Lewat Perintah DPKG DPKG adalah aplikasi package manager untuk sistem Linux turunan Debian (dua yang paling terkenal ialah Ubuntu dan Linux Mint). Dengan aplikasi ini kita bisa memasang, menghapus, mengupdate, atau membuat file .deb. Perintah untuk memasang file .deb dengan dpkg adalah: $ sudo dpkg -i namaplikasi_amd64.deb Terkadang, saat kita memasa...

Aldi

Review PopOS!

Berikut ini screenshoot tampilan PopOS! ...

DXAero

Installasi PopOS!

Berikut adalah proses instalasi pop os pada PC Pop Os merupakan varian distro linux yang lagi diminati sekarang, Penulis sudah mencobanya dan ini termasuk distro yang lumayan ringan untuk di jalankan pada PC. Nah berikut ini penulis ingin menjelaskan bagaimana proses penulis dalam melakukan instalasi pop os ini Persiapan: Download dulu file ISO dari website pop os Buat bootable flashdisk untuk melakukan instalasi Langkah: Masuk ke BIOS lalu atur BOOT Priority ke USB...

DXAero

7 Hal tentang Ubuntu 19.04

Ubuntu 19.04 akan dirilis nanti pada bulan april, berikut beberapa hal yang mungkin perlu kamu ketahui 1. Ubuntu 19.04 diberi nama 'Disco Dingo' seperti postingan sebelumnya tentang versi terbaru dari ubuntu, versi 19.04 ini akan dinamakan disco dingo. ini dikarenakan Canonical memberikan nama pada perilisan ubuntu menggunakan kombinasi "adjective dan nama binatang" yang memiliki huruf awal yang sama. Maka pada ubuntu 19.04 ini diberi nama Disco Dingo 2. Pembaruan pada Tema ...

DXAero