Unix keeps a list of major services and default ports
in /etc/services
e.g.
ssh on port 22
http on port 80
smtp (mail) on port 25
imap v3 (mail) on port 220
X window system on ports 6000-6007
ssh <host>
to connect to an ssh server
telnet <host>
to connect to a telnet server
rdesktop <host>
to connect to a Windows remote
desktop server
Many mail clients: mail, pine, evolution, mutt, thunderbird, ...
dhclient <interface>
(leas info in /var/lib/dhclient/dhclient.leases)
For any text-based service, you can connect to it using
telnet <port>
will return
telnet www.bhtafe.edu.au 80
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
X-Powered-By: ASP.NET
Content-Location: http://192.232.128.225/index.htm
Date: Mon, 21 Sep 2009 00:43:44 GMT
Content-Type: text/html
Accept-Ranges: bytes
Last-Modified: Fri, 18 Sep 2009 06:44:48 GMT
ETag: "a07441842b38ca1:dc7"
Content-Length: 26136
will return
telnet mail.bhtafe.edu.au 25
Trying 192.232.128.56...
Trying 192.232.128.11...
Trying 192.232.128.12...
Connected to mail.bhtafe.edu.au.
Escape character is '^]'.
220 mail-dc2.mail.bhtafe.edu.au Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Mon, 21 Sep 2009 10:44:22 +1000
SMB (Server Message Block) is the Microsoft file sharing service
Closely related to CIFS (Common Internet File System) also from Microsoft
SMB2 is the latest version in Vista and Server 2008, quite different to SMB/CIFS but shares the same port
SAMBA is the Unix reverse-engineered version, both clients and server
SAMBA supports SMB/CIFS and is developing support for SMB2
smbclient <share>
gives an ftp-like interface to an SMB system
e.g. smbclient --user mail/j.newmarch //bhtdata/infostore
Alternatively you can mount a filesystem as type cifs
mount -t cifs //bhtdata/infostore /G -o username=mail/j.newmarch