SSH to Cisco Routers on GCP

Moderator: mike

Post Reply
kalyan.san
Posts: 4
Joined: Tue Apr 28, 2020 1:20 am

SSH to Cisco Routers on GCP

Post by kalyan.san » Tue Apr 28, 2020 1:29 am

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

Uldis (UD)
Posts: 5086
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: SSH to Cisco Routers on GCP

Post by Uldis (UD) » Tue Apr 28, 2020 5:43 am

you can NOT ssh. Default for consoles is telnet.

kalyan.san
Posts: 4
Joined: Tue Apr 28, 2020 1:20 am

Re: SSH to Cisco Routers on GCP

Post by kalyan.san » Tue Apr 28, 2020 11:59 am

Then what is the way to do network automation? I see the network automation packages always do SSH to the routers/switches.

Uldis (UD)
Posts: 5086
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: SSH to Cisco Routers on GCP

Post by Uldis (UD) » Tue Apr 28, 2020 7:17 pm

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

kalyan.san
Posts: 4
Joined: Tue Apr 28, 2020 1:20 am

Re: SSH to Cisco Routers on GCP

Post by kalyan.san » Tue May 05, 2020 4:07 am

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.

Post Reply