cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
306
Views
0
Helpful
4
Replies
Highlighted
Beginner

Quagga NED ssh

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

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Quagga NED ssh

"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?

4 REPLIES 4
Cisco Employee

Re: Quagga NED ssh

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.

 

Beginner

Re: Quagga NED ssh

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!

Cisco Employee

Re: Quagga NED ssh

"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?

Beginner

Re: Quagga NED ssh

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.