Skip to content

Instantly share code, notes, and snippets.

View ruddhisundar's full-sized avatar
🇮🇳
Working from home!

Rudhisundar Beura ruddhisundar

🇮🇳
Working from home!
View GitHub Profile
@tuxfight3r
tuxfight3r / openssh-notes.txt
Created February 8, 2016 14:38
openssh - disable scp and log all sftp connections
#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