[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4] block: Add support for Secure Shell (ssh) bl
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v4] block: Add support for Secure Shell (ssh) block device. |
Date: |
Thu, 28 Mar 2013 14:29:24 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Mar 28, 2013 at 11:16:58AM +0000, Richard W.M. Jones wrote:
> On Thu, Mar 28, 2013 at 11:47:32AM +0100, Stefan Hajnoczi wrote:
> > ssh(1) prompts the user to accept the hostkey. When QEMU fails like
> > this the user needs to run ssh(1) first to populate known_hosts?
>
> Yes - I tested this and qemu will simply fail to open the disk with
> the error message about the host key not being found. Currently you
> have to manually log in (eg. with ssh), accept the key in ssh, and
> then retry the qemu command.
>
> Not that I think this is much of a problem, as long as the error is
> clear.
>
> But ... if I wanted to make qemu interactively ask about host keys, or
> even accept passwords, how would I do that? Is there a block device
> driver that asks for passwords that I can look at?
>
> [The only mention of 'password' is in the iscsi driver, and that seems
> to be related to passing passwords in the URL (!?!)]
There is an API to prompt for a image encryption key, see
.bdrv_set_key().
Stefan