Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-04-2008, 09:39 AM   #1
Registered: Feb 2008
Posts: 30

Rep: Reputation: 15
determine which port telnet is using

How about this one. Can someone tell me how to tell which port telnet is listening on?

I get "Could not open connection to the host, on port 23"
Old 02-04-2008, 09:48 AM   #2
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,239
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Is telnet even running ? Most distributions don't even install the telnet daemon since it is so insecure..

it-etch:~# netstat -alnp | grep ssh
tcp6       0      0 :::22                   :::*                    LISTEN     3432/sshd
That being said you can use netstat to check the open ports and grep for telnetd.

I don't have telnet running for the reasons I mentioned above so I used sshd in my example..
the port ssh is listening on is 22

If you did install telnet and can't get to it, it might be blocked by your local firewall
iptables -L
Old 02-04-2008, 10:21 AM   #3
Registered: Feb 2008
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for the response but never mind. We used Putty/SSH to connect.
Old 09-03-2008, 01:20 PM   #4
Registered: Jul 2005
Posts: 144

Rep: Reputation: 15
cat /etc/services | grep "^telnet\b"

The number that is part of the second column is the port number.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
4 port router. Does ip number determine priority? suguru Linux - Networking 1 01-23-2008 11:12 AM
how to telnet a port graziano1968 Linux - Server 2 01-04-2008 06:56 AM
telnet to port 22 icechong Linux - Newbie 9 03-08-2007 01:25 AM
telnet port 80 doodah Linux - Networking 4 04-27-2001 08:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration