linux-command
How to Disable Password Authentication for SSH
vi /etc/ssh/sshd_config
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
/etc/init.d/sshd restart
Setup networking
vi /etc/network/interfaces
auto ens160
iface ens160 inet static
address 192.168.0.22
gateway 192.168.0.2
netmask 255.255.255.0
dns-nameservers 192.168.0.2 8.8.8.8
/etc/init.d/networking restart