LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 02-04-2008, 09:39 AM   #1
cj4331
Member
 
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
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

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

Code:
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
cj4331
Member
 
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
ShaqDiesel
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 06:29 AM.

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