ā04-18-2012 11:41 AM - edited ā03-07-2019 06:12 AM
Hello,
I am currently running into this problem when i try to connect to some new devices that were just installed.
xxx-xxx-xx#ssh -l (userid):139 xxx-xxx-xx
Password:
[Connection to xxx-xxx-xx closed by foreign host]
The device im connecting from is a 3745 router.
When i check the line interface everything looks in order
line 80 160
session-timeout 1440 output
login authentication admin-vty
terminal-type ANSI
no exec
transport preferred none
transport input telnet ssh
transport output all
stopbits 1
This problem persists even when ports are swapped, you are able to log 1 time into the device but after you leave it constantly gives you this error.
ā04-18-2012 11:46 AM
Hi ,
I belive that your issue here is "no exec" on the line . Remove this and retry.
Dan
ā04-18-2012 11:56 AM
I thought the no exec-timeout option just set it not to timeout the vty lines?
Message was edited by: Jimmy Sands Looks like Dans, reply was correct, here is an explanation: https://supportforums.cisco.com/thread/144449
ā04-18-2012 11:59 AM
Thanks here is my VTY
line vty 0 4
exec-timeout 9 59
accounting commands 1 acct-cmd1
accounting commands 15 acct-cmd15
accounting exec acct-exec
login authentication admin-vty
transport input ssh
transport output all
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