How to turn off the scp and sftp commands in Linux

  
                

Linux users often use the scp and sftp commands when transferring remote files. However, these two commands also put some risks on our computer, so we can turn them off when we don't need to transfer files remotely. So how to disable scp and sftp? Here is the specific method.

Introduction to sftp

sftp is an abbreviation of Secure File Transfer Protocol, a secure file transfer protocol. A secure encryption method can be provided for transferring files. Sftp and ftp have almost the same syntax and function

scp introduction

The transfer of files between two hosts generally uses the scp command, usually using the scp command to obtain the other Linux host file through ssh You need to enter your password to confirm it. The method is almost the same.

ban scp and sftp command

System: centos 5.x

1. First prohibit scp

rpm -qa

Copyright © Windows knowledge All Rights Reserved