qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/2] qemu-ga: add ssh-{add,remove}-authorized-keys


From: Michal Privoznik
Subject: Re: [PATCH 0/2] qemu-ga: add ssh-{add,remove}-authorized-keys
Date: Wed, 14 Oct 2020 12:43:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2

On 10/13/20 10:25 PM, marcandre.lureau@redhat.com wrote:
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

Add two new commands to help modify ~/.ssh/authorized_keys.

Apart from Philippe's comments, this path is configurable in sshd.config. But I doubt we should care as ssh-copy-id doesn't care.


Although it's possible already to modify the authorized_keys files via
file-{read,write} or exec, the commands are often denied by default, and the
logic is left to the client. Let's add specific commands for this job.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1885332

Marc-André Lureau (2):
   glib-compat: add g_unix_get_passwd_entry_qemu()
   qga: add ssh-{add,remove}-authorized-keys

  include/glib-compat.h    |  24 +++
  qga/commands-posix-ssh.c | 394 +++++++++++++++++++++++++++++++++++++++
  qga/commands-win32.c     |  10 +
  qga/meson.build          |  17 +-
  qga/qapi-schema.json     |  32 ++++
  5 files changed, 476 insertions(+), 1 deletion(-)
  create mode 100644 qga/commands-posix-ssh.c


Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]