Configure Static IP Address and enable SSH for root a/c in kali linux
How to Configure Static IP Add and enable SSH for root a/c in kali linux and fix ifdown: interface eth0 not configured in kali linux
- step@1
Configure Static IP Address
#vi /etc/network/interfaces
iface eth0 inet static
address 192.168.46.128 [Your Linux machine IP]
netmask 255.255.255.0 [Your Netmask address]
broadcast 192.168.46.255 [Your Broadcast address]
gateway 192.168.46.1 [Your Gateway address]
Write the changes using :wq!
- Step@2
Fix ifdown: interface eth0 not configured Error
#vi /run/network/ifstate
eth0=eth0
Write the changes using :wq!
#ifdown eth0
#ifup eth0
- Step@3
Enable SSH for root a/c in kali linux
#vi /etc/ssh/sshd_config
# Authentication section
change from "PermitRootLogin without-password" to PermitRootLogin yes
PermitRootLogin yes
Write the changes using :wq!
No comments:
Post a Comment
Note: only a member of this blog may post a comment.