search

Home  >  Q&A  >  body text

python - Paramiko和os模块能否一起使用?

想实现一个功能:ssh到远程服务器,拿一个目录下的文件列表。
能否用Paramiko进到服务器后,用os的功能?
不行的话,是不是只能执行shell后,自己去做字符串的处理了?
新手求教,不胜感激!

PHP中文网PHP中文网2887 days ago382

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:40:25

    No, what you can do with paramiko is the same as what you can do with putty or ssh client. You can only use the SHELL provided by the system for operations

    reply
    0
  • Cancelreply