Jump to content

Максим Чаховский

Forum Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Максим Чаховский

  • Rank
    Newbie

Equipment

  • Keenetic
    Keenetic Lite OS 2.15.B.0.0-4

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Да, задача из сессии SSH исполнять команды CLI. После команды "show" ожидаю ответ "Core::Configurator: Done." Вот что из терминала mac вручную (то же хочу получить из python): MacBook-Air-Maksim-2:~ Chakhovsky$ ssh admin@192.168.1.1 admin@192.168.1.1's password: Keenetic OS version 2.15.B.0.0-4, copyright (c) 2010-2019 Keenetic Ltd. THIS SOFTWARE IS A SUBJECT OF KEENETIC LIMITED END-USER LICENCE AGREEMENT. BY USING IT YOU AGREE ON TERMS AND CONDITIONS HEREOF. FOR MORE INFORMATION PLEASE CHECK https://keenetic.com/legal (config)> show Core::Confi
  2. Из python вызываю SSH, выдает ошибку: import paramiko p = paramiko.SSHClient() p.set_missing_host_key_policy(paramiko.AutoAddPolicy()) p.connect("192.168.1.1", port=22, username="admin", password="qwerty") stdin, stdout, stderr = p.exec_command("show") opt = stdout.read() + stderr.read() print(opt) b'[C] Feb 24 16:59:14 ndm: bin::ndmc: invalid option "-c".\n'
×
×
  • Create New...