Using ssh as unprivileged user inside LXC

jsabater

Member
Oct 25, 2021
122
12
23
49
Palma, Mallorca, Spain
Hello everyone.

Unprivileged user inside an unprivileged LXC in a Proxmox 7.2-11 cluster running Debian 11 Bullseye (from the latest debian-11-standard_11.3-1_amd64.tar.zst Proxmox template, wit packages updated to current versions). Same as it happens with the ping command, the non-root user cannot establish a connection to my bastion host (another LXC in the cluster, incidentally the same node, that acts as a SSH proxy).

After running the following command as root, it works:

Bash:
setcap cap_net_raw+p /usr/bin/ssh

I take it this is the same issue as with the ping command, but I am not 100% sure. Is it? Is there an expected fix? Is the above mentioned fix the best way to deal with it these days? Would you like me to open a bug in the Bugzilla tracker?

Thanks in advance.