I'm definitely learning...something!!!
I installed sshd and tried to install it by using /usr/sbinsshd -d
Here's what I got:
[root@localhost sbin]# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_3.9p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on ::.
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.
OK so I did a bit more research and I ran: nmap -sT -O localhost
which gave me:
Starting nmap 3.55 (
http://www.insecure.org/nmap/ ) at 2005-02-16 18:32 EST
Interesting ports on localhost (127.0.0.1):
(The 1656 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
1024/tcp open kdm
6000/tcp open X11
Device type: general purpose
Running: Linux 2.4.X|2.5.X|2.6.X
OS details: Linux 2.5.25 - 2.6.3 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)
Uptime 9.766 days (since Mon Feb 7 00:09:05 2005)
Nmap run completed -- 1 IP address (1 host up) scanned in 5.677 seconds
Aha! This strange command tells me that ssh is already running and is listening on port 22.
OK, did more research and I ran this:
[root@localhost sbin]# pgrep -f ssh
which gave me this:
7438
So ssh is running. when I try to telnet from the other windows PC, I get a reply saying "could not open connection to the host on port 22. connection failed"