I'm trying to scp through a virtual machine but when the guest terminal asks for my host user password it simply does not accept my real user password. Is the machine asking for another entry?

The user is not root and I know it's password in the host machine it looks like this:

user@host's password:
Permission denied, please try again:
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – terdon
    Mar 25 '19 at 9:14

Apart from above mentioned points, you need to consider another 2 files in remote server which you are connecting:


You need to check whether your ssh connection is allowed or not from the server which you are connecting to.


daemon can be vsftpd,sshd 

if you want to allow only for particular network, put below entry in /etc/hosts.allow:


(The above means that an ssh connection is allowed for network 192.168.159.*)

If you want to restrict for a particular network, put below entry in /etc/hosts.deny:


(The above means that an ssh connection is not allowed for network 192.168.139.*)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.