06-07-2016 12:15 AM - edited 03-08-2019 06:06 AM
Hi Team,
I'm looking for some help, please..
I've deployed a new switch (cisco WS-C3850-48T) with minimal configuration, like an ip address on mgmt interface and vty with trasport input/output as ssh only. I've create a local login say cisco/cisco and enable is cisco.
I'm able to ping the device over the mgmt path and i could a login prompt on putty but it kicks out the session saying Authentication Failure.
Please advise.
Regards
Bhopendra
Solved! Go to Solution.
06-07-2016 03:57 AM
Hello
Show ip ssh
ip ssh version 2
crypto key generate rsa general-keys modulus 2048
username cisco privilege 15 password cisco
line vty 0 15
transport input ssh
privilege level 15
login local
This should work for you depending you have the correct ios to support SSH
res
Paul
06-07-2016 09:01 AM
At the minimum this will work
conf t
hostname c2960
!
enable secret cisco
!
!
ip domain-name c2960.local
crypto key generate rsa general-keys modulus 2048
ip ssh version 2
username cisco privilege 15 password cisco
aaa new-model
aaa authentication login default local
06-07-2016 12:28 AM
hi,
did you issue a crypto key generate rsa general-keys modulus 2048 command?
please post a sanitized config.
06-07-2016 12:50 AM
Hello John,
Thank you for your assistance,
Please find the configuration below :
************************* Host name and local login configuraton ************************************
hostname EUACP-SWT1-DR
!
!
username cisco privilege 15 password cisco
enable passowrd level 15 cisco
service password-encryption
!
!
************************* Management Interface and IP address configuration *************************
interface GigabitEthernet0/0
ip address 192.168.182.124 255.255.255.248
no ip redirects
no ip unreachables
no ip proxy-arp
ip default-gateway 192.168.182.121
************************* Console and VTY Configuration : *************
line con 0
session-timeout 5
logging synchronous
login authentication CONSOLE
transport output ssh
line vty 0 4
session-timeout 5
logging synchronous
transport input ssh
transport output ssh
line vty 5 15
session-timeout 5
logging synchronous
transport input ssh
transport output ssh
!
***************************************************************
Yes, i tried generating the crypto, we have used the below command,
crypto key generate rsa general-keys mod 1024
06-07-2016 01:03 AM
hi,
can add below and try again?
line vty 0 15
login local
06-07-2016 01:11 AM
hi John,
Than you, i'll add the above command and try however, how local login would help? i mean i could see the login prompt on putty, please advise
06-07-2016 01:21 AM
hi,
you'll need this line in order to authenticate/SSH to the switch using the created local user database (cisco/cisco).
i'm also puzzled how you're able to see the login prompt even without this line. give it a try first and see if it work.
06-07-2016 01:34 AM
Hi John,
Thank you, i tried adding the additional command but i'm still getting the same response/error.
You can upload the above configuration in GNS3, i'm able to reproduce the same error message...
06-07-2016 01:52 AM
could you post a show version?
06-07-2016 01:57 AM
06-07-2016 07:34 AM
hi,
can you use other SSH client such as securecrt?
i'm thinking of upgrading the IOS to 3.6.4 as a last resort.
cat3k_caa-universalk9.SPA.03.06.04.E.152-2.E4.bin
https://software.cisco.com/download/release.html?mdfid=284455434&flowid=37772&softwareid=282046477&release=3.6.4E&relind=AVAILABLE&rellifecycle=MD&reltype=latest
06-07-2016 07:58 AM
Thank you John, i tried from my next hope switch but i was getting the same error message.
06-07-2016 08:06 AM
!
aaa new-model
!
aaa authentication login default local
aaa authentication enable default enable
is missing
06-07-2016 09:01 AM
At the minimum this will work
conf t
hostname c2960
!
enable secret cisco
!
!
ip domain-name c2960.local
crypto key generate rsa general-keys modulus 2048
ip ssh version 2
username cisco privilege 15 password cisco
aaa new-model
aaa authentication login default local
06-07-2016 08:11 AM
can you post the full config (sanitized) via a show run?
06-07-2016 03:57 AM
Hello
Show ip ssh
ip ssh version 2
crypto key generate rsa general-keys modulus 2048
username cisco privilege 15 password cisco
line vty 0 15
transport input ssh
privilege level 15
login local
This should work for you depending you have the correct ios to support SSH
res
Paul
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