Mayur Patel
Thursday, November 29, 2018
How to Enable SSH root login on Ubuntu Server
Change your root user password :-
==> sudo passwd root
Open the sshd_config file :-
==> sudo nano /etc/ssh/sshd_config
Find the following line in sshd_config :-
==> PermitRootLogin prohibit-password
Change the following line :-
==> PermitRootLogin yes
Then restart the ssh service :-
==> sudo /etc/init.d/ssh restart
How to change Ubuntu from DHCP to Static IP Address
Open the /etc/network/interfaces file :-
==> sudo nano /etc/network/interfaces
You can see the following lines in interfaces file :-
==> auto eth0
iface eth0 inet dhcp
Change the following lines :-
==> auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8
Then reboot the server.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)