Add following to sshd_config file Refer – https://www.cyberciti.biz/faq/match-address-sshd_config-allow-root-loginfrom-one_ip_address-on-linux-unix/
SSH
-
The issue is, ssh to public ip or internal ip is working fine. However, this is not working while ssh to wireguard interface ip. After some research from the internet, …
-
Create a new jail conf file on /etc/fail2ban/jail.d Add below code Create new filter conf file on /etc/fail2ban/filter.d Add below code. Restart the fail2ban service Check fail2ban status Done. Refer …
-
Edit /etc/fstabAdd below command Save the fileExecute mount -a to test itIf everything goes fine, then reboot the system to have final test
-
It can be use iptables to accept port 22 from specify host. It also can restrict by sshd_config file
-
This is the command Added reconnect to keep connection alive Refer – https://unix.stackexchange.com/questions/61567/how-to-specify-key-in-sshfs
- 1
- 2