Page 1 of 1

SSH to Cisco Routers on GCP

Posted: Tue Apr 28, 2020 1:29 am
by kalyan.san
Hi guys,

I have recently installed Eve-NG on the GCP (Google Cloud). After a successful install, I have setup my first lab with 3 Cisco vIOS routers. I could telnet to each of them on ports 32769, 32770, and 32771 from my home machine. Life is good!
But I wanted to do SSH as well from my home machine so I have enabled SSH on each of these routers. Since the Cisco router didn't allow any port above 10K for SSH access, I have configured ports 9990, 9991, and 9992 on each of those routers. But I couldn't SSH to them from outside.
How can I make this work? TIA for any inputs.

Kalyan

Re: SSH to Cisco Routers on GCP

Posted: Tue Apr 28, 2020 5:43 am
by Uldis (UD)
you can NOT ssh. Default for consoles is telnet.

Re: SSH to Cisco Routers on GCP

Posted: Tue Apr 28, 2020 11:59 am
by kalyan.san
Then what is the way to do network automation? I see the network automation packages always do SSH to the routers/switches.

Re: SSH to Cisco Routers on GCP

Posted: Tue Apr 28, 2020 7:17 pm
by Uldis (UD)
on GCP then you need to order second public IP, assign it to some lab router which will act like breakout node
then you will be able get in lab routers with full ssh connection..
or make all inside lab with some Linux host for phyton, and connect it to lab nodes and use this lan without internet

Re: SSH to Cisco Routers on GCP

Posted: Tue May 05, 2020 4:07 am
by kalyan.san
Thank you, it helped.

To add, automation packages do support telnet if anyone wants. For example, in Netmiko you can change the "device_type" parameter from "cisco_xe" to "cisco_xe_telnet" if you prefer to telnet to the target device.

Hope this helps some people out there.