Whenever I am trying to access 1 router thr ssh, it asks me for the username and password but putty window gets closed when I entered the correct password. Same happening when trying from 1 linux server. When entering wrong password, it will ask for the password again but will not close the session. Please suggest.
- Looks like the router may have some acl-like configuration to restrict ssh (vty)-access from specific sources only. Check the configuration from the native console of the router.
If it has a ACL then it will not ask for the password as well. It ask for the username and password and gets disconnected after entering password.
- Could be some resource problem ; check the logs from the native console , when a valid user is attempted. issue show logging.
- Yeah, there are a few other things to consider too : 1) Specify a syslog server from the native console ; check if any errors are reported on those failed logons 2) Reboot the rooter and check if the problem upon a reboot remains the same, if not a resource-leak could cause the problem to become visible after long up-time (e.g.) 3) and or related check the current software version the router is running, if it's rather old consider upgrading , verify the problem afterwards.
Can you please explain me with the example. Do you mean that routers IP is getting used at somewhere else as well? If yes then how it will make issues while accessing device only?
Do you mean that routers IP is getting used at somewhere else as well?
There is one way to test: Disable the router and see if the IP address is still reachable or not.