With using below steps you can block and Allow specific IPs to take SSH without using iptables and Firewall.
Open below file,
cat /etc/hosts.allow
sshd: 192.168.0.13 : allow
sshd: ALL : deny
This will allow SSH for 192.168.0.13 IP only.
With using below steps you can block and Allow specific IPs to take SSH without using iptables and Firewall.
Open below file,
cat /etc/hosts.allow
sshd: 192.168.0.13 : allow
sshd: ALL : deny
This will allow SSH for 192.168.0.13 IP only.
Create bash script,
Create file: script.sh
#!/bin/bash
date echo "testing"
Apply executable permission.
# chmod 0777 script.sh
Move script to /usr/local/bin/
# mv script.sh /usr/local/bin/
Now you can execute script from anywhere.
# cd /home/# script.sh
output:
Thu Nov 18 11:05:41 IST 2021testing
Mouse M3 button not working in wayland - ubuntu 26.04 1. Check your desktop Run: echo $XDG_SESSION_TYPE echo $XDG_CURRENT_DESKTOP 2. If...