SSH permission denied eventhough the password is correct

I am not able to connect through SSH to the virtual machines in virtualbox through my Windows powershell and i get and error saying,
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).”

i am attaching the screenshot of it so that some folks could clear my way out in learning ssh connection. Please help.

Ensure that the username and password are correct.

On your VM try ssh’ing to localhost using the same username and password.

It displays ‘connection refused’ when i tried ssh’ing host through one of the virtual machine.

I said localhost which is 127.0.0.1 or localhost

Yeah, i can ssh the local host through both the virtual machines of mine.

Just to be clear when you are on the oxboxes VM you can ssh to localhost but you can’t using LAN IP address?

yeah , it displays ‘connection refused’ when tried ssh’ing host LAN IP address through VM and ‘Permission denied’ , when tried ssh’ing VM through host. Also i can ssh root of my vm if mentioned ‘ssh root@ip_of_vm’ through local device and ssh localhost through vm. The only thing i find throwing error is connecting to LAN IP address.

Can you run ssh in debug mode -v and paste the command and output here in a text block, use the </> icon on the edit window menu bar.