-
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_config
file
vi /etc/ssh/sshd_config
- Make sure that
-
PermitRootLogin yes
is not commented -
PasswordAuthetication yes
is not commented -
ChallengeResponseAuthentication yes
is not commented -
AllowUsers
is commented
- Save, quit and restart
sshd
systemctl restart sshd.service
- In VM network configuration choose the
Host-Only Adapter
, then rundhclient
to get an IP address
dhclient enp0s3 -v
- Now you can
ssh
orscp
from the host machine asroot
using the IP address attributed by DHCP
ssh -v root@192.168.56.102 # for example