cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12556
Views
5
Helpful
4
Replies

Remove Login command from LINE VTY

carlosdeidan
Level 1
Level 1

Hi,

I have a a doubt regarding to LOGIN command

The line VTY at the beginning  does not have LOGIN command.

line vty 0 4

!

after when I configure login and password command i have the following

line vty 0 4

login

password cisco

If i remove  LOGIN command using NO LOGIN  i have the following output:

line vty 0 4

no login

password cisco

My question: Is there any option to remove completely the LOGIN from the configuration ?

Best Regards,

CD

4 Replies 4

Leo Laohoo
Hall of Fame
Hall of Fame

My question: Is there any option to remove completely the LOGIN from the configuration ?

default line vty 0 15

Hi Leo,

When i execute the command "default line vty 0 4" i receive the following output

% Can't delete last 5 VTY lines

is there any other option to reset the line ?

jose.albor
Level 1
Level 1

I have the same issue, I can´t delete the login.

line vty 0 4
exec-timeout 30 0
login
length 0
transport input ssh
line vty 5 15
exec-timeout 30 0
no login
transport input ssh

I tried no login, and the "login authentication" command is not supported

(config-line)#login authentication default
^
% Invalid input detected at '^' marker. 

_______________________________

 

(config-line)#login ?
local Local password checking
<cr>

 

I find this recent post confusing. The (fairly old) discussion to which the recent post was added was about removing the login process from vty lines. The partial config posted shows that the login process has been removed from vty 5 15. If this poster wants to remove the login process  from vty 0 4 I would think that it could be done. But the post is asking about login authentication default which is not a valid command for vty lines.

The command login authentication default would make more sense if it were being applied as part of configuring aaa authentication. But login (or no login) on the vty only makes sense in an environment where there is no aaa new-model. As soon as you configure aaa new-model then login is automatically applied to the vty lines.

HTH

Rick
Review Cisco Networking for a $25 gift card