12-04-2018 01:04 AM - edited 03-01-2019 04:14 AM
Hi,
I'm interested in how would you connect to quagga router using ssh from NSO? So quagga runs multiple daemons for each functionality it provides (bgpd, ospfd, zebra..), and these daemons are accessible on their associated telnet ports, so I can add a device to NSO on telnet port 2605(bgpd) and using the quagga-bgp NED manage that daemon, that works.
But I see that the NED has the setupSSH method, so I guess there is a way to use ssh? Is it able to connect to vtysh on quagga? I wasn't successfull with ssh, so any help would be appreciated.
Thanks,
Simon
Solved! Go to Solution.
12-04-2018 06:53 AM
"vtysh" was the component I couldn't remember the name of, and yes, that's just a proxy. I admit I haven't set this up myself, but I can't imagine it being difficult to place SSH (e.g. OpenSSH) in front of vtysh. A small matter of system configuration? Have you tried setting up vtysh as the login shell on the Linux system hosting your Quagga?
12-04-2018 03:58 AM
It is true that each Quagga component has a telnet style CLI of its own. Most Quagga users, however, setup Quagga with a central proxy component (I forget the name of the component right now) that supports SSH and forwards all commands to the correct sub component(s) in the framework.
12-04-2018 06:39 AM
Hi Jan, thanks! Looking for this kind of proxy component, the only thing I found resembling is vtysh, which is the quagga integrated shell for handling all daemons. But that's just 'frontend', and I think you can't remotely ssh to it so neither can NED.
If you happen to remember the name of that component I would appreciate if you let me know. Thanks!
12-04-2018 06:53 AM
"vtysh" was the component I couldn't remember the name of, and yes, that's just a proxy. I admit I haven't set this up myself, but I can't imagine it being difficult to place SSH (e.g. OpenSSH) in front of vtysh. A small matter of system configuration? Have you tried setting up vtysh as the login shell on the Linux system hosting your Quagga?
12-04-2018 07:15 AM
Simple as that :) I've added /usr/bin/vtysh as the shell for my user inside /etc/passwd. Works as expected.
Thanks for pointing me in the right direction.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide