HowTo: scp chroot mit openssh

1) Einen neuen User anlegen (Beispiel: uploader) 2) Home Verzeichnis in der /etc/passwd auf / setzen 3) Am Ende der /etc/ssh/sshd_config folgendes einfügen: UsePAM no Subsystem sftp internal-sftp -f AUTH -l VERBOSE Match user uploader ChrootDirectory /var/www/uploads ForceCommand internal-sftp -u 0002 AllowTcpForwarding no 4) chown root:root /var/www/uploads && chmod 755 Read more…

OS X Install golang with brew / Setting PATH

Nach der Installation von Go (oder Golang) auf einem OS X via brew müssen anschließend diverse Umgebungsvariablen gesetzt werden damit Go korrekt funktioniert. Diese legen wir in unsere .bashrc oder .zshr ab damit sie immer verfügbar sind. # bashrc export GOPATH=$HOME/golang export GOROOT=/usr/local/opt/go/libexec export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOROOT/bin