Skip to content
  • Richard W.M. Jones's avatar
    block: Add support for Secure Shell (ssh) block device. · 0a12ec87
    Richard W.M. Jones authored
      qemu-system-x86_64 -drive file=ssh://hostname/some/image
    
    QEMU will ssh into 'hostname' and open '/some/image' which is made
    available as a standard block device.
    
    You can specify a username (ssh://user@host/...
    
    ) and/or a port number
    (ssh://host:port/...).  You can also use an alternate syntax using
    properties (file.user, file.host, file.port, file.path).
    
    Current limitations:
    
    - Authentication must be done without passwords or passphrases, using
      ssh-agent.  Other authentication methods are not supported.
    
    - Uses a single connection, instead of concurrent AIO with multiple
      SSH connections.
    
    This is implemented using libssh2 on the client side.  The server just
    requires a regular ssh daemon with sftp-server support.  Most ssh
    daemons on Unix/Linux systems will work out of the box.
    
    Signed-off-by: default avatarRichard W.M. Jones <rjones@redhat.com>
    Cc: Stefan Hajnoczi <stefanha@gmail.com>
    Cc: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    0a12ec87