Ubuntu ssh port

How do we check Ubuntu ssh port? All services have their own unique ports. You can always check service's port in /etc/services file. Open the file using less or vim text editor. Here is an example of /etc/services file:


luzar@ubuntu:/etc$ less /etc/services


# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign
# a single well-known
# port number for both TCP and UDP; hence, officially ports
# have two entries
# even if the protocol doesn't support UDP operations.
#
# Updated from http://www.iana.org/assignments/port-numbers
# and other sources like
# http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/services .
# New ports will be added on request if they have been officially
# assigned by IANA and used in the real-world or are needed by
# a debian package.
# If you need a huge list of used numbers please install the
# nmap package.

tcpmux 1/tcp # TCP port service multiplexer
echo 7/tcp
...
...
...
ftp 21/tcp
fsp 21/udp fspd
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp
telnet 23/tcp
...
...
...
tfido 60177/tcp # fidonet EMSI over telnet
fido 60179/tcp # fidonet EMSI over TCP

# Local services

There you go, quite a long list. The /etc/services contains almost all standard services. As you can see, Ubuntu ssh port is 22.