From 6ec161c5b9ababc119c42883de40a23bd8d14bbb Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 29 May 2026 07:16:33 +0000 Subject: [PATCH] ssh-proxy: Default to root user When ssh-ing into a VM, you generally do not want to log in as your user from the host. Let's default to the root user unless a user is explicitly specified. --- src/ssh-generator/20-systemd-ssh-proxy.conf.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssh-generator/20-systemd-ssh-proxy.conf.in b/src/ssh-generator/20-systemd-ssh-proxy.conf.in index e43560aa74..f88eca3275 100644 --- a/src/ssh-generator/20-systemd-ssh-proxy.conf.in +++ b/src/ssh-generator/20-systemd-ssh-proxy.conf.in @@ -10,6 +10,7 @@ Host .host machine/.host # Make sure machine/* can be used to connect to local machines registered in machined. # Host unix/* unix%* vsock/* vsock%* vsock-mux/* vsock-mux%* machine/* machine%* + User root ProxyCommand {{LIBEXECDIR}}/systemd-ssh-proxy %h %p ProxyUseFdpass yes CheckHostIP no