07-29-2015 09:08 AM - edited 03-08-2019 01:10 AM
Dear all,
I configured ssh on my router and since the could not login using putty on my LAN or WAN. i was using telnet before i configured ssh.The error message is Network error:connection refused why I try to login.Can anyone help me figure out this error?
07-30-2015 01:04 AM
You have no key enabled so ssh is disabled
%Please create RSA keys to enable SSH (and of atleast 768 bits for SSH v2).
To generate a key fo the below in conf t mode
crypto key generate rsa ------then hit return type 1024 and return again run --show ip ssh
it should be enabled then
09-29-2015 07:45 AM
I know this is old, but, it is my exact issue. When I generate the key it says it does, but it appears not to. If I issue crypto key generate rsa modulus 2048 and then to sh ip ssh I get
09-29-2015 08:11 AM
Do you get the same if you try do a 1024 key ?
whats does the show crypto key mypubkey rsa output show ?
when you try this crypto key zeroize rsa does it remove keys?
You have a domain-name/hostname and username set yes can block it as well if not in config
09-29-2015 10:12 AM
Right now (prior to trying a 1024 key) I get a cisco_idevid_sudi keytype RSA Keys
another showing the proper device name + Domain with keytype RSA_keys - all general purpose
issued zeroize -
one key left which is the cisco idevid
generated keys with 1024 and have the same two keyst again.
I do have a domain name and host name. Also have a local user and pwd on the vty...along with acl, etc. But, it does include the network I'm coming from.
sh ip ssh still says to create a key.
09-30-2015 02:10 AM
And does the ssh work when you try access the switch from putty can you log in by ssh does it show you as an ssh user with show ssh ?
It might be just a cosmetic bug if the actual ssh is still working
09-30-2015 01:39 PM
SSH did not work at all.
TAC got it working for me, and it was very simple if correct. I would never have given you the proper info to get it fixed.
Apparently I created the key before I created the key-pair. He did it in the other order and it worked. Not sure I had ever paid attention to the order I was doing it in.
Thanks for reading!
10-01-2015 12:14 AM
good to know :)
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