![]() |
Computer - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Computer (/thread-14181.html) |
Computer - arsenal58 - Nov-18-2018 Not sure how many questions are allowed per day lol. But I was wondering if there was a way I can access another computers console using my python? RE: Computer - metulburr - Nov-18-2018 There are a lot of libraries to ssh to other computers, one would be http://www.paramiko.org/ (Nov-18-2018, 05:20 PM)arsenal58 Wrote: Not sure how many questions are allowed per dayUnlimited RE: Computer - arsenal58 - Nov-18-2018 Doing some research on paramiko and it seems like a fairly advanced program. Is there a more dumbed down version or a way to do it in laymans? RE: Computer - Gribouillis - Nov-18-2018 I think the first thing to do is to access the remote computer's console WITHOUT python. For this, you need to install an SSH server on the remote computer. This step depends on your OS and configuration. Then you need to start an SSH client on the local computer and connect to the remote server from this client. Once these prerequisite work, you will have many options to connect from the python program. RE: Computer - Gribouillis - Nov-19-2018 Another option (especially in a local secure network) is to use a RPC module such as rpyc to run python code on the remote computer. Then you only need to start an rpyc server on the remote computer. However, read the chapter about security. |