Technology and troubleshooting.

Monday, February 20, 2017

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
Configure Static IP Address and enable SSH for root ac 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!


That's all :)
I hope this information is useful for you. Please forgive any typos or incomplete sentences.

Share:

0 comments:

Post a Comment

Contributors

Popular Posts