07-06-2019 05:31 PM
Hello everyone, I write to you today for some assistance getting my management network to work properly.
I have 4 routers connected to a switch all have ssh configured and I am able to reach them all from the switch via Putty. When I access them via putty I am prompted for username and password as it should.
my problem is that I am unable to ssh from one device to another
if I am in the switch (10.10.10.1) and try to ssh to one of the routers (10.10.10.5) using the following commands
ssh -l username 10.10.10.5 it doesn't work
ssh 10.10.10.5 since the username is the same for all devices still doesn't work
any help would be great. Thank you
Solved! Go to Solution.
07-06-2019 11:27 PM
07-06-2019 09:04 PM
Hi,
What is the ssh configuration of the devices? Do you have access lists on the devices to restrict what addresses can ssh to the device?
Thanks
John
07-06-2019 09:36 PM - edited 07-07-2019 02:46 AM
can you ping a device? is switch L2 type?
you do need ssh -l username ip address
besides username and password, you will need following commands to be present:
hostname of a device set
ip domain name xxx
crypto key generate rsa usage-keys
- get at least 512 generated for ssh v1, 756 i think is min. for v2
ip ssh version 2
line vty 0 4
transport input ssh
password
07-06-2019 10:55 PM - edited 07-06-2019 11:47 PM
As you mentioned you able to SSH to switches using Putty, this clear that you have SSH configured. (still below are the steps if you missed)
config t
hostname XXX
ip domain-name bbandi.com <<- change as per your requirement
crypto key generate rsa
1024 or higher is suggested.
Setup vty lines
line vty 0 4
transport input ssh
login local
paswword XXX
line con 0
logging sync
login local
username bbandi passwork bandib
enable secred trynewpassword
service password-encryption
configure tansport output also to make connection out
transport output ssh
save the config and try from switch to switch
if you have issue, there may be ACL Setup (please post the complete configuration).
07-06-2019 11:27 PM
07-07-2019 12:16 PM
Can't believe I overlooked that one command "transport output ssh" that is exactly what was missing. However I am still having the same problem from one device, my management switch still can't establish ssh connection with the other devices connected to it. I can initiate ssh connection from all other devices to each other but can't seem to get an outbound connection from this switch (C2950-24)
I tried with console connection and with mgmt Rj45 connection to no avail.
I've attached the config for SW1 my management switch that is giving me the issue can someone take a look and see why I might be getting the error (bottom of document)
Thanks in advance for your assistance.
07-07-2019 12:16 PM
Can't believe I overlooked that one command "transport output ssh" that is exactly what was missing. However I am still having the same problem from one device, my management switch still can't establish ssh connection with the other devices connected to it. I can initiate ssh connection from all other devices to each other but can't seem to get an outbound connection from this switch (C2950-24)
I tried with console connection and with mgmt Rj45 connection to no avail.
I've attached the config for SW1 my management switch that is giving me the issue can someone take a look and see why I might be getting the error (bottom of document)
Thanks in advance for your assistance.
07-07-2019 12:48 PM
07-07-2019 04:04 PM
07-07-2019 09:45 PM
07-08-2019 12:28 AM
Another suggestion, if ssh have difficulties, you can allow Telenet for the device IP only with ACL in place to secure the Control plane, i understand some old devices still have old secure services
07-08-2019 02:41 AM
Well that's a bummer....anyway thanks for the assist I'll just replace the switch with one that supports ssh v2 and push forward because I'm not a fan of telnet so Id rather not deal with it altogether.
thanks again.
07-08-2019 07:25 AM
Sure that is good Move to migrate to higher level, so risk lowers, the suggest only made since some enterprise take long time to get down time to replace..and you would like to have access also.
07-08-2019 06:00 PM
So as I understand it there is no IOS available that would allow ssh outbound connection?
I find this very hard to believe or strange at best.
07-08-2019 09:50 PM
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