Score:0

How should I limit active ssh connections

ao flag

I have added this myuser hard maxlogins 1 to /etc/security/limits.conf and it works ok if I run ssh myuser@xxx.xxx.xxx.xxx in command line. but if I run ssh -p 22 -N -D 5060 myuser@xxx.xxx.xxx.xxx, I can run unlimited concurrent connections. Is there anyway to limit this type of ssh?

FedKad avatar
cn flag
`MaxStartups` setting in the `/etc/ssh/sshd_config` file may help.
in flag
in your /etc/ssh/sshd_config is UsePAM enabled?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.