01-23-2017 11:39 PM - edited 03-08-2019 09:02 AM
Hi, sometime I've a problem when i try to connect to a cisco router with a telnet. I try starting a telent session and the router answer back with a triple request of username but immediately after i receive the information that the connection has been "...closed by foreign host"
This behavior is not constant, other time the session goes well. i also saw that the destination router is not overloaded in this period
01-23-2017 11:50 PM
Hello,
what does the VTY line config look like ? It should be something like this:
line vty 0 15
password yourpassword
transport input telnet
login
Very long uptimes can sometimes also be a problem. Check the uptime of your router with:
show version | i uptime
01-24-2017 03:28 AM
Yes the config is similar and the system should stay up always..
line vty 0 4
exec-timeout 5 0
login local
transport input telnet ssh
line vty 5 15
exec-timeout 5 0
login local
transport input telnet ssh
till now is:
uptime is 34 weeks, 6 days, 33 minutes
01-24-2017 04:11 AM
Hello,
try to configure a password on the vty lines and check if that makes a difference...
01-24-2017 05:35 AM
But I have a username and password configured locally, and usually doesn't produce problems, similar to this:
3560#sh run
Building configuration...
(...)
service password-encryption
username ABCDE password 7 12345abc
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