Set up port forwarding rule in VM Settings > Network > Adapter 1 > Advanced > Port Forwarding: ProtocolTCPHost IP127.0.0.1Host Port22Guest IP10.0.2.15or get IP with ifconfigGuest Port22 Then log in with ssh localhost