cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3284
Views
0
Helpful
5
Replies

Does ssh default/hidden username exist in Cisco IOS related on vty line-based authentication ?

lnrdnl78d
Level 1
Level 1

Hi Guy

Configuring following:

 

line vty 0 4 

transport input all

password Pass1

login 

 

I' m able to access using telnet but using an ssh client it doens't work. It seems "username " is needed.

So is there a "default username" that IOS associate to incoming ssh connecion when vty authentication is based on line password ?

If I use "transport input ssh" in above configuration I'll cut myself off ?

Thankyou in advance

 

5 Replies 5

Jaderson Pessoa
VIP Alumni
VIP Alumni
Hello, for ssh configuration, run commands below:

sw(config)#: crypto key generate rsa (keysize)
sw(config)#: no ip domain-lookup
sw(config)#: username admin privilege 15 password password123!
sw(config)#: line vty 0 15
sw(config-line)#: transport input ssh
sw(config-line)#: login local
sw(config)#: ip ssh version 2


Test connection.
Jaderson Pessoa
*** Rate All Helpful Responses ***

Thanks Jaderson

but my question is a bit different.

I'need to know if there is some way to access to a router when configuration is following:

 

line vty 0 4

transport input ssh

password Pas1

login

 

Assuming all other configuration is right

Thankyou again

Ciao

Daniele

 

Its necessary username to authenticate for ssh.
Jaderson Pessoa
*** Rate All Helpful Responses ***

Dennis Mink
VIP Alumni
VIP Alumni

There are no separate ssh credentials for ssh. The creds that work for telnet work for ssh as well.

Please remember to rate useful posts, by clicking on the stars below.

luis_cordova
VIP Alumni
VIP Alumni

Hi @lnrdnl78d ,

 

The SSH protocol uses the username to formulate the encryption key, so its configuration is necessary.
I leave the guide for the configuration:

 

https://www.cisco.com/c/en/us/support/docs/security-vpn/secure-shell-ssh/4145-ssh.html

 

Regards