0

Bash login will usually give three attempts before giving back the prompt. Sometimes it will give many more - like today which were infinite. Using control-c didn't abort that process it just entered the characters ^C. Likewise for escape^[.

In any case, how can I abort the login without going through with three attempts or more?

Eventually it will time out with: login: Login timed out after 300 seconds. But I don't want to be held hostage by my terminal.

Login incorrect
login: ^C
login:     
login: 
login: 
login: 
login: ^C
login: ^C
login: ^C
login: ^C
login: exit
Login incorrect
login: ^C
login: ^C
login: 
login: 
login: 
login: 
login: 
login: ^C
login: ^C^C^C^C^C
login: 
login: 
login: 
login: ^C
login: ^C
login: 
login: 
login: 
login:  
Login incorrect
^[
^C
login: login: ^C
login: ^[
Login incorrect
^[^C




^C
^C
login: login: ^C^[^[^[
Login incorrect
^[
login: Login incorrect
login: Login timed out after 300 seconds
3
  • Is this in a terminal window? If so, just close the window?
    – ErniePC12
    Commented Feb 8, 2021 at 22:19
  • @ErniePC12 that is not ideal. I don't want to force close the window because then my history will not be amended.
    – John
    Commented Feb 8, 2021 at 22:24
  • Where are you logging into her, and how (ssh, telnet, something else)?
    – nohillside
    Commented Feb 13, 2021 at 8:36

1 Answer 1

1

Sometimes ^D can also exit terminal CLIs. I just tried it on my own computer, and ^D does exit this properly.

1
  • Yep, that worked perfectly. Thanks for the tip.
    – John
    Commented Feb 14, 2021 at 5:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .