Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Computer
#1
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?
Reply
#2
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 day
Unlimited
Recommended Tutorials:
Reply
#3
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?
Reply
#4
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.
Reply
#5
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020