Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • You have set PermitTunnel no for sftpaccess, therefore this group can't create tunnels. Commented Oct 1, 2020 at 13:49
  • @Panki when I apply both groups sftpaccess and mysqlaccess to an user, the instructions are not replaced by the last group matched? Commented Oct 1, 2020 at 13:53
  • @caiquearaujo No, the first match is used for any setting. Maybe it is just going to work if you define Match Group mysqlaccess before Match Group sftpaccess in your sshd_config (but I haven't look really carefully at it, sorry). Commented Oct 1, 2020 at 15:00