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.
This commit is contained in:
Daan De Meyer
2026-05-29 16:13:29 +02:00
committed by Daan De Meyer
parent 0a63318420
commit 6ec161c5b9
@@ -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