Skip to contentSkip to conversation

/etc/limits with openssh

DISCUSSION Daniel Ammann 2 participants 2 messages May 14, 2019 – May 20, 2019

lore
Share & tools
lore
#0 lore raw

Hi

I am trying to restrict non-privileged users from using up too many resources. I added "* U100" to /etc/limits. If the user logs in using the serial console, it works. If the user logs in using openssh, the limits are not applied. How do I make this work for ssh login?

I am using beaglebone-yocto with core-image-base with added sshd. This is yocto 2.6.

Thanks

Daniel

#1 lore raw
Quoted 10 lines · Daniel Ammann

Hi

I am trying to restrict non-privileged users from using up too many resources. I added "* U100" to /etc/limits. If the user logs in using the serial console, it works. If the user logs in using openssh, the limits are not applied. How do I make this work for ssh login?

I am using beaglebone-yocto with core-image-base with added sshd. This is yocto 2.6.

if you have pam installed then you might want to experiment with settings in /etc/security/limits.conf

Quoted 4 lines

Thanks

Daniel