W
W
waltaki2019-09-26 15:26:13
linux
waltaki, 2019-09-26 15:26:13

How to deny SFTP group access but leave regular SSH in terminal?

Please tell me how can I prevent a specific group from accessing SFTP, but still allow access to SSH.

Match Group users
    X11Forwarding no
    AllowTcpForwarding no
    AllowAgentForwarding no
    PermitTunnel no
    ForceCommand internal-sftp
    ChrootDirectory /home/%u
    
AllowGroups users

This option blocks access to the SSH terminal.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question