Python远程连接ssh、在后台执行命令、非root权限的测试账号执行sudo命令时需要输入密码
1、环境准备先安装pycryptodome,cryptography,再安装paramiko。(较早的教程说安装pycrypto,但pycrypto已经停止维护。)#安装pycryptodomepip3installpycryptodome#安装cryptographypip3installcryptography#安装paramikopip3installparamiko2、Python远程ss