-
Notifications
You must be signed in to change notification settings - Fork 1
configure sshd on vms
Lokman Rahmani edited this page Dec 26, 2017
·
1 revision
- Open
/etc/ssh/sshd_configfile
vi /etc/ssh/sshd_config- Make sure that
-
PermitRootLogin yesis not commented -
PasswordAuthetication yesis not commented -
ChallengeResponseAuthentication yesis not commented -
AllowUsersis commented
- Save, quit and restart
sshd
systemctl restart sshd.service- In VM network configuration choose the
Host-Only Adapter, then rundhclientto get an IP address
dhclient enp0s3 -v- Now you can
sshorscpfrom the host machine asrootusing the IP address attributed by DHCP
ssh -v root@192.168.56.102 # for example