On Thu, Dec 25, 2008 at 05:14:33AM -0800, Valery Reznic wrote:
> I have Linux box and it hosts another Linux in VMware and yet another one in 
> QEMU
> 
> I want to be able to login from both VMWare and QEMU to host computer without 
> being asked password.
> 
> So I took usual route - generated private/public key with keygen (rsa keys),
> put private key in the Linux on VMWare, (~/.ssh/id_rsa) public key in the 
> host (~/.ssh/authorized_keys) and was able to login without password to host 
> computer.
> 

I believe that the usual route would be to generate 

> Now I copied ~/.ssh/id_rsa from VMWare into the Linux in QEMU, run ssh - and 
> ooops - I prompted to enter password.
> 
> Also I copied ~/.ssh/id_rsa to the host computer and tried to ssh to myself 
> (both as to real ip and to 127.0.0.1) - and again was prompted to enter 
> password.
> 
> Any ideas how can I ssh from QEMU to host computer without password ?

What's stopping you from copying your keys? You can always run scp / sftp 
in the qemu guest to connect to the host. I assume your problem is that 
you use user-net on qemu and hence the guest is effectively behind NAT.

-- 
Tzafrir Cohen         | tzaf...@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzaf...@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend

=================================================================
To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il

Reply via email to