Hi all,
As part of my linux server project, I need to disable SCP and SFTP while still allowing SSH login access. Please give your suggestions and useful tipe.
Thanks, Sohail
Hi all,
As part of my linux server project, I need to disable SCP and SFTP while still allowing SSH login access. Please give your suggestions and useful tipe.
Thanks, Sohail
Hello,
To disable scp or SFTP file transfers on a RHEL or CoreOS system, delete or comment out the relevant line in the /etc/ssh/sshd_config file and then restart the sshd service.
Subsystem sftp /usr/libexec/openssh/sftp-server
If you still need remote file transfers after disabling SFTP and SCP login, you can use rsync or another similar tool instead.
Let me know if you need additional help.
Cheers, Richard. ![]()