K
K
Konstantin2021-07-29 13:22:01
linux
Konstantin, 2021-07-29 13:22:01

All users have SFTP access only. How can I give individual users SSH+SFTP access?

Hello.
All users access the VPS only via SFTP (with ssh disabled). To do this, I created a separate sftpUser group and add users to this group. And in the /etc/ssh/sshd_config config I write it like this:

Match group sftpUser
    ForceCommand internal-sftp


It is required to allow a single user access to both ssh and sftp. What is the best way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-07-29
@webmaster

Remove this user from the sftpUser group.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question