Friday, July 24, 2020

Cant get switch to use password based SSH

DISCLAIMER: Repost from r/ccna

Hey Guys! Working on CCNA studying and just got in a bunch of switches for homelabbing. IM trying to set up SSh access so i dont have to constantly switch around a serial cable. Took me a while but I eventually got my switch accessible from the network and sshable. Now the problem is that no matter what I cannot get IOS to use password based authentication instead of key based authentication. Using putty, i can SSH into the switch but after it prompts username it times out without giving me a password prompt. Using debug ip ssh the switch just says host key authentication failed and password authentication failed even though it never prompted me for the password.

Config Here:

version 15.0

no service pad

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Level2

!

boot-start-marker

boot-end-marker

!

enable secret 5 password

!

username admin privilege 15 password

no aaa new-model

system mtu routing 1500

!

!

no ip domain-lookup

ip domain-name fios-router.home

ip name-server 1.1.1.1

!

!

interface Vlan1

ip address 192.168.1.9 255.255.255.0

!

ip default-gateway 192.168.1.1

ip http server

ip http secure-server

logging esm config

!

line con 0

logging synchronous

login local

line vty 0 4

privilege level 15

password a3b2f5c4

login local

transport input ssh

line vty 5 15

privilege level 15

login local

transport input ssh

!

end

Note: I have an identitcal switch running ios 12 that has the exact same running config but works perfectly and prompts for password. I cant figure out the difference



No comments:

Post a Comment