Skip to content

Instantly share code, notes, and snippets.

View NunoFilipeSantos's full-sized avatar

Nuno Santos NunoFilipeSantos

  • Porto, Portugal
  • 05:50 (UTC +01:00)
View GitHub Profile
@NunoFilipeSantos
NunoFilipeSantos / DisableRootAccessSSH.sh
Last active May 5, 2018 10:00
Disable root access via SSH
#!/bin/bash
# Disable root access via SSH
# USAGE:
# curl -Lo DisableRootAccessSSH https://gist.githubusercontent.com/NunoFilipeSantos/7eee84fcb40b52d5ede6332f902d1b1c/raw/DisableRootAccessSSH.sh
# chmod +x DisableRootAccessSSH
# ./DisableRootAccessSSH
perl -pi -e 's/PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config
@NunoFilipeSantos
NunoFilipeSantos / synctorrent.sh
Last active July 26, 2018 16:54
A Bash Script to copy files via SFTP from your remote Seedbox
#!/bin/bash
login=$YOURUSERNAME
pass=$YOURPASSWORD
host=sftp://YOURIPADDRESS
remote_dir=/$YOURDOWNLOADFOLDER
local_dir=/$YOURLOCALFOLDER
trap "rm -f /tmp/synctorrent.lock" SIGINT SIGTERM