Skip to content

Instantly share code, notes, and snippets.

@p3rtinax
p3rtinax / openssh-notes.txt
Created November 27, 2018 14:46 — forked from tuxfight3r/openssh-notes.txt
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