This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Disable scp and logs all sftp connections | |
#Disable Scp | |
mv /usr/local/bin/scp{,out} | |
#Create fake scp message | |
cat > /usr/local/bin/scp <<EOF | |
#!/bin/bash | |
echo "This service allows ssh/sftp connections only" | |
EOF |