Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I have a VM using ubuntu 14.04. running on a windows. If I use the terminal on the VM desktop, I can connect to my servers without passwords using registered SSH Keys.

When I connect to the VM from my windows using a ssh client, I cannot log in the server without password.

Linux(VM) ---> Server                     |  Authentication with SSH keys works

SSH session ---> Linux(VM) ---> Server    | Ask for the server password.

How can it use the SSH key registered in the VM when I am remotely connected?

share|improve this question

1 Answer 1

Not sure which client you are using, but for some the default settings is to forward SSH agent requests and to ignore the middle-man's key(s). Look in your documentation to disable "agent forwarding", in ssh(1) that is the -a option and the ForwardAgent configuration value.

share|improve this answer
    
I tried with Putty and SmarTTY. Looking into that. –  Syl Nov 24 '14 at 12:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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