Link to home
Start Free TrialLog in
Avatar of lhrslsshahi
lhrslsshahi

asked on

SFTP and RSync on RHEL 7

I have setup an SFTP server for external access and that works, however internally we want users also to be able to use RSYNC to the server but at the same disable SSH and allow SFTP for external access!

How can I achieve this?


drwxr-xr-x. 3 root     sftponly   73 Jun 21 15:24 paul

Below is the SSH Demon config.


Subsystem sftp internal-sftp

Now scroll to the end of the config file and add the following to create the match rule:

Match Group sftponly
ChrootDirectory %h
ForceCommand internal-sftp
X11Forwarding no
AllowTcpForwarding no
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial