Using ssh as unprivileged user inside LXC

jsabater

Member
Oct 25, 2021
102
7
23
48
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!