Nginx error log
cat /var/log/nginx/error.log
Nginx access log
cat /var/log/nginx/access.log
Manual
man scp
From remote to local
scp remote_user@remote_host:/path/to/remote/file /path/to/local/file
From local to remote
scp /path/to/local/file remote_user@remote_host:/path/to/remote/file
Basic
import os
os.urandom(24)
With hex formatting
import os
import binascii
binascii.hexlify(os.urandom(24))