About Running Shell Commands Remotely

You can run commands remotely using the ssh tool as follows:

scp backup.zip root@1.2.3.4:/var/backups/backup.zip
ssh root@1.2.3.4 chown myproject:www-data /var/backups/backup.zip

That's useful for simple maintenance scripts.

N.B. For security reasons, avoid setting SSH connections with a root user and password. Connections with SSH private and public keys should be OK.

Tips and Tricks Dev Ops Security Maintenance Bash SSH

Django/Python Consulting

If you have a specific Django challenge or integration you'd like to solve, I'd be happy to help. Book a free 30-minute call to discuss your project, see if we're a good fit, and explore the best approach for your needs. After the call, you'll receive a tailored cost estimate based on what we discuss.