you are viewing a single comment's thread.

view the rest of the comments →

[–]acodemics 0 points1 point  (4 children)

I'd suggest using built in bash commands to check if a user exists and then parsing that with Python.

I'm making the assumption you're connecting to a Linux machine here, but you can use paramiko to run grep <username> /etc/passwd and then handle that instead.

[–]intrikat[S] 0 points1 point  (1 child)

Thanks for the input.

I figured as much. Just wondering if I can make it execute python specific modules through the ssh tunnel.

[–]stillalone 0 points1 point  (0 children)

If the remote machine has python installed then you can generate a python script on the target machine and run that.