N
N
Nikita Reshetnyak2021-03-05 11:39:06
SSH
Nikita Reshetnyak, 2021-03-05 11:39:06

How to make SSH and SFTP work together?

Good day! I ran into a problem that I can not configure SSH and SFTP at the same time. There are several similar guides on the Internet, but it all comes down to the fact that the user does not have SSH, only SFTP. Config like this

Match Group sftp-group
X11Forwarding no
AllowTcpForwarding no
AllowAgentForwarding no
PermitTunnel no
#ForceCommand internal-sftp
ChrootDirectory /home

The user is in the group. If you uncomment ForceCommand SFTP appears, but SSH falls off. Tell me what's the point.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2021-03-05
@nreshetnyak

I don't understand what "at the same time" means. At the same time, the user does one thing anyway. But it's still nonsense, because even if I'm sitting somewhere on a server via ssh and I need to upload something via sftp - I just drop it and that's it.
Nakua here ForceCommand? The situation appears to be incompletely described. The devil is in the details.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question