Python 脚本 - 连接到 SSH 并运行命令

标签 python automation ssh telnet

我已经知道有 Python 的 ssh 模块,但这不是我要找的。 我想要的是一个 python 脚本来执行以下操作:

  1. > 连接到[用户输入的] SSH 主机
  2. > 使用凭据 [ 由用户提供 ] 连接
  3. > 在 SSH 主机上运行命令 [telnet 到 [主机 - 用户输入]
  4. > 在 telnet session 中选择菜单项

提前致谢

最好的问候,

最佳答案

关于Python 脚本 - 连接到 SSH 并运行命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4896785/

相关文章:

python - 使用 Python 2.6 连接到 MySQL...如何?

python - 用 self.__init__(...) 重新初始化一个对象

python - 平方 (x^2) 近似的神经网络

windows - VBA:IE-如何在没有弹出文件上传表单的情况下将路径名分配给文件输入标签?

Python 预期 : fdpexpect + pyserial == timeout does not work?

automation - 咖啡厅 : Page timeout after submit

jquery - python:将嵌套字典转换为类似 JSON 的格式

python - 导入 MySQLdb ImportError

php - 使用 phpseclib 安装 proftpd

linux - 用于 sudo 访问的 ssh 环境变量