开发者

Logging into a server and parsing files on that server with Python

开发者 https://www.devze.com 2023-03-01 15:42 出处:网络
I would like to be a开发者_如何转开发ble to use a Python script that I wrote to search files to login to an Ubuntu server that\'s password protected (which I have credentials ), and search files on th

I would like to be a开发者_如何转开发ble to use a Python script that I wrote to search files to login to an Ubuntu server that's password protected (which I have credentials ), and search files on that server.. Is there a straight forward way to accomplish this?


To login and run remote terminal commands through python, you should use either paramiko or pexpect. Pexpect is not touched very much by noah these days... I'm starting to wonder whether he is abandoning it.

The other way is to sftp the files from the remote server to your local machine... paramiko is useful for that as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消