A
A
Alexander Lebedev2018-04-15 01:36:17
Python
Alexander Lebedev, 2018-04-15 01:36:17

Will the source code of Python scripts executed via SSH be saved in the logs of CentOS (and other Unix server systems)?

Goodnight. I have a slightly paranoid question.
Situation: I am making backups from a VDS server on CentOS to Google Cloud Storage. Transfer via SCP is not supported, so I'm using the gcloud library for Python. I connect via SSH, upload a Python script to the server, execute it, delete the script, disconnect. The goal is that I don’t want access to any APIs on the server, because I periodically fall under brute force attempts via SSH / in the site’s admin panel.
Actually, the question is: if I downloaded a script with accesses, executed it, made a backup, and then deleted the script, will the source code of the executed script be saved somewhere in the system, and is it possible to get access from it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2018-04-15
@sortarage

No. And to calm the paranoia, clean up the logs and history behind you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question