Cisco Router Telnet Connection Refused

ciscocisco-commandscisco-iosrouter

I have a cisco 1941 router just configured but no matter how I go about configuring the telnet, it seems not to work.

It has interfaces already set up and systems can browse through it in the office. It has two interfaces WAN and LAN configured with Ip Addresses and the LAN interface with other sub interfaces with IP address configured on them.

I have tried setting up the terminal with the command as stated below but it is not working.

Router(config)#line vty 0 ?
<1-1370> Last Line Number
Router(config-line)#line vty 0 1370
Router(config-line)# password P@$$W)RD
Router(config-line)# login

I even tried using the following configuration but yet not working

Router(config)#line vty 0 4
Router(config-line)# password P@$$W)RD
Router(config-line)# login

Everytime I try to connect to the any of the subinterfaces through telnet or the WAN address through telnet, I get the error message

MacBook-Pro:~ User$ telnet x.x.x.x
Trying x.x.x.x...
telnet: connect to address x.x.x.1x Connection refused
telnet: Unable to connect to remote host

Please what am I getting wrong here?

Best Answer

The issue has been resolved. When I checked the running configuration on the router, I noticed I have the line below under the line vty 0 4

access-list class 23 in

All I had to do was to negate the command and everything went back to normal.

Thanks all for your support.