SSH Connection with Python 3.0

后端 未结 6 1398
余生分开走
余生分开走 2020-12-03 18:53

How can I make an SSH connection in Python 3.0? I want to save a file on a remote computer where I have password-less SSH set up.

6条回答
  •  借酒劲吻你
    2020-12-03 19:08

    You want all of the ssh-functionality implemented as a python library? Have a look at paramiko, although I think it's not ported to Python 3.0 (yet?).

    If you can use an existing ssh installation you can use the subprocess way Dietrich described, or (another way) you could also use pexpect (website here).

提交回复
热议问题