python - Paramiko和os模块能否一起使用?
PHP中文网
PHP中文网 2017-04-17 17:38:25
0
1
373

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

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
洪涛

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template