To access your Kali machine from outside your local network using SSH, you need to ensure that your network and the machine are configured correctly. Here are the steps:
sudo apt update
sudo apt install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
curl ifconfig.me
sudo nano /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.100/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
sudo systemctl restart dhcpcd
ssh maverick@your_public_ip -p external_port
Ex:-
ssh maverick@203.0.113.10 -p 2222
Comments
Post a Comment