Setting VPS Biznet Gio

Biar aman, Biznet Gio menggunakan sistem no password based login. Dan by default user hanya bisa akses SFTP, tidak bisa SSH. Bagaimana mengatasinya?

Ubah Jadi Root

Ubah current user jadi root? Cukup ketik

sudo su – 

Allow Password Authentication

Ada dua file yg harus dirubah: /etc/ssh/sshd_config dan juga /etc/ssh/sshd_config.d/50-cloud-init.conf

Cara detailnya di sini:

https://kb.biznetgio.com/id_ID/informasi/cara-allow-password-authentication-pada-ubuntu-2204

Disable Ping

sudo nano /etc/sysctl.conf

Then append the following line in the file:

net.ipv4.icmp_echo_ignore_all = 1

Then issue the following command in Terminal to apply this configuration without reboot:

sysctl -p

Source: https://linuxhint.com/block-unblock-ping-requests-to-ubuntu-server/

Memberi Akses SSH

Kalau pas login ada tulisan begini:

This service allows sftp connections only.
Connection to 10.0.0.130 closed.

Lakukan

sudo nano /etc/ssh/sshd_config

Cari bagian ForceCommand internal-sftp lalu kasih comment

Lalu systemctl restart ssh


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *