I've been trying to SSH to my virtual machine with no luck over the past 2 hours.
I can login directly to my VM successfully - but I can't SSH to it.
Attempt 1:
In VirtualBox, I have setup a host-only network. If I SSH to the IP for this using ssh [email protected] -p22
, the following occurs:
A password prompt shows up, and my user's password does not work. After 3 failed attempts I receive the following error:
Permission denied (publickey,keyboard-interactive).
Attempt 2:
I also have a NAT set up in VirtualBox with the CIDR 10.0.2.0/24
. If I try and SSH into it using ssh [email protected] -p22
, nothing happens, and it eventually times out.
If I ping this IP, it also times out with each ping:
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
...
More Details:
I have PasswordAuthentication
set to yes
in /etc/ssh/sshd_config
.
I've also checked the contents of /var/log/secure
, which has no output from tail -f
when attempting to SSH into the VM.
I'm really not sure what the problem is, or what to do to solve it. Any help would be appreciated! Thanks.