How to configure sshd to have both ssh and sftp connection?
0
votes
1
answer
2763
views
I have two Linux machines. One of them must be a sftp server. I added the following lines to
/etc/ssh/sshd_config
file:
#SFTP server configuration
Match Group root
ChrootDirectory /share
ForceCommand internal-sftp
So now I can put and get files over sftp, but when I try to connect with my sftp server over ssh I get the following error:
> This service allows sftp connections only.
What should I do to enable both sftp and ssh to root?
Thank you in advance for any help.
Asked by user6758
(23 rep)
Jul 25, 2021, 11:07 AM
Last activity: Aug 8, 2025, 08:02 AM
Last activity: Aug 8, 2025, 08:02 AM