Author Topic: ping on a particular port?  (Read 194 times)

Offline rabbidrabbit

  • Gold Member
  • *****
  • Posts: 3910
ping on a particular port?
« on: January 12, 2007, 04:43:37 PM »
I thought it was a particular switch on a ping command but can't find it.  Any better ideas?   I have to ping a SSH, port 22 on an IP.

Offline Aqualung

  • Zinc Member
  • *
  • Posts: 35
ping on a particular port?
« Reply #1 on: January 12, 2007, 05:08:21 PM »
I don't think you can use ping to ping a specific port.  Telneting to the port may work or else use a port scanner.

Offline 2bighorn

  • Gold Member
  • *****
  • Posts: 2829
Re: ping on a particular port?
« Reply #2 on: January 12, 2007, 05:09:06 PM »
Quote
Originally posted by rabbidrabbit
I thought it was a particular switch on a ping command but can't find it.  Any better ideas?   I have to ping a SSH, port 22 on an IP.
Use telnet instead

example
c:\telnet hostname 22

Offline Debonair

  • Gold Member
  • *****
  • Posts: 3488
ping on a particular port?
« Reply #3 on: January 13, 2007, 01:39:13 AM »
ping uses port 25 by default, u can change it using portmap if u r root & u own.
default port for ssh is 22
quake uses port 26000
telnet uses port 23, but is selectable, but the other guy probably aint listening on 22

Offline 2bighorn

  • Gold Member
  • *****
  • Posts: 2829
ping on a particular port?
« Reply #4 on: January 13, 2007, 02:16:33 AM »
Quote
Originally posted by Debonair
ping uses port 25 by default,
ping is ICMP based and part of IP ie same level as TCP, UDP etc. No ports here.
Port 25 is used by SMTP btw...

Quote
Originally posted by Debonair
telnet uses port 23, but is selectable, but the other guy probably aint listening on 22
Doesn't matter, you can telnet into SSH on port 22 to see if it's open.

You'd get something like this:
SSH-2.0-OpenSSH_3.6
Protocol mismatch.

Offline Debonair

  • Gold Member
  • *****
  • Posts: 3488
ping on a particular port?
« Reply #5 on: January 13, 2007, 02:35:38 AM »
:O :O darn, i used to knoe stuff & own, but now i just act smart & distribute misinformation.
i'm no better than krusty:cry :cry :cry :cry :cry
where do i go to surrender my copy of emacs?