Could not open connection to the host, on port 23: connection failed

Posted on 2009-07-12
Last Modified: 2012-08-14
I am trying to connect to my cisco router,
i can connect through console but when i try to telnet it shows:
" Could not open connection to the host, on port 23: connection failed "
here is my conf:
line vty 0 4
access-class 23 in
password 7 ............
login local
transport input telnet
transport output telnet

this is the current configuration i tried a lot of things but it didn't work even when i tried to login using hyper terminal to telnet its ip its not working
N.B I am able to ping to the routers IP
ANy suggestions please
Question by:first_MCITP

Expert Comment

ID: 24834093
Remove the "access-class 23 in" under the line vty 0 4. The access-list is probalby preventing you from coming in.
LVL 16

Accepted Solution

memo_tnt earned 500 total points
ID: 24834098
do you have an ACL 23 to permit you network as the following

access-list 23 permit
access-list 23 permit
access-list 23 permit
access-list 23 permit

plus here is a working config.

line vty 0 4
 access-class 23 in
 exec-timeout 120 0
 length 0
 transport preferred all
 transport input all
 transport output all


Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question