Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including
Stack Overflow
, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this community
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I have recently installed a (cross platform) client server application consisting of a web server backend and a thick (dumb) desktop client.
I have been able to connect to the server and run the Ubuntu desktop client successfully, however, when a colleague installed the client application on their Windows 10 laptop, the got the following error:
[Error 10061]: No connection could be made because the target machine
actively refused it
I have
SSH
installed and running on the Linux server.
This is what I've done so far, to try and solve the problem:
1.
run
ps aux | grep ssh
to make sure SSH is running on server:
root 4359 0.0 0.1 65520 6304 ? Ss Sep02 0:02 /usr/sbin/sshd -D
root 19148 0.0 0.1 95400 6704 ? Ss 08:23 0:00 sshd: morpheous [priv]
morpheo+ 19166 0.0 0.0 95400 3380 ? S 08:23 0:00 sshd: morpheous@pts/0
2. run netstat -l
to make sure port 8000 is being listened to:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:ssh *:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 [::]:8000 [::]:* LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 16673 /run/user/1000/systemd/private
unix 2 [ ACC ] STREAM LISTENING 11592 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 11597 /var/run/docker.sock
unix 2 [ ACC ] STREAM LISTENING 11601 /run/uuidd/request
unix 2 [ ACC ] STREAM LISTENING 15199 /run/docker/libnetwork/c691c7be0884cd7e163479e2dca860cec5877a0dc01ed98a50e22d236d70b7e0.sock
unix 2 [ ACC ] STREAM LISTENING 9616 /run/systemd/private
unix 2 [ ACC ] SEQPACKET LISTENING 9623 /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 9631 /run/systemd/fsck.progress
unix 2 [ ACC ] STREAM LISTENING 9644 /run/systemd/journal/stdout
unix 2 [ ACC ] STREAM LISTENING 15072 /var/run/docker/libcontainerd/docker-containerd.sock
3. Used putty from the Windows machine, to try to connect to the server. However, when presented with the Linux CLI and prompted to login, when I enter valid credentials, I get the error message: Access denied
4. I obtained the IP address of the windows machine, and then checked /var/log/auth.log
on the server machine to see if the IP address of the windows machine was in there (to see if the machine had been refused connection as reported by the Tryton client app). THERE WAS NO RECORD OF THE IP ADDRESS IN THE LOG FILE!
Can someone help with the required steps needed to diagnose and fix this problem?
[[UPDATE]]
It turns out that my friend was using the wrong IP address on the Windows client!. However, as I have wasted an entire day trying to get to the bottom of this, my question is this:
ASSUMING THE CLIENT IS ATTEMPTING TO CONNECT TO THE CORRECT MACHINE (i.e. USING CORRECT IP ADDRESS), is there a way I can (on the server) view/record all HTTP and HTTPS requests coming to the server machine?
How can I do that?
–
–