Skip to content

ssh_proxy Mikrotik do not close #3737

@ArthurAntipov

Description

@ArthurAntipov

Describe the problem
terminate the NET::SSH connection when sending the 'quit' or 'exit' termination command.

Expected behavior
Getting the configuration file via ssh_proxy (proxyjump)

Configuration

If applicable, publish your configuration.

[config.txt](https://github.com/user-attachments/files/24964148/config.txt)
[router.db.txt](https://github.com/user-attachments/files/24964149/router.db.txt)
[config from ssh.txt](https://github.com/user-attachments/files/24964191/config.from.ssh.txt)

Logs

If applicable, add logs to help explain your problem.

[log.txt](https://github.com/user-attachments/files/24964429/log.txt)

Running environment (please complete the following information):

  • OS: [e.g. Debian Trixie, official version 13.3]
  • oxidized version: [e.g. 0.35.0]
  • Manufacturer model an software version: MikroTik RouterOS 7.20.6 (hAP ax^2 and CapAC), SNR-S2989G-24TX SoftWare Package Version V705R002C011
  • oxidized model name: routeros, dcnos

Additional context
hAP x^2 head unit (ssh_proxy), followed by a Mikrotik access point and a SNR switch for testing. I tried it and it works on all devices using public keys. I also tried the proxy key and then the password. As I understand it, it hangs because it can't terminate the NET::SSH connection when sending the 'quit' or 'exit' termination command.
In files /home/oxidized/.config/oxidized/logs/172.16.25.2-ssh have config information, in 172.16.25.9-ssh command for mikrotik AP3
GNU nano 8.4 /home/oxidized/.config/oxidized/logs/172.16.25.9-ssh sent cmd "/system resource print"
sent cmd "/system package update print"
sent cmd "/system history print without-paging"
sent cmd "/export show-sensitive"
sent cmd "quit"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions