Score:1

Remote SSH access: connection refused

cn flag

Good day to all,

Been researching this problem for the past 4-5 days but to no avail... SSH refuses to log in from remote computer. Ubuntu 20.04 server running on server on local network

So far:

  1. able to ftp, ssh, telnet, vnc to local server from computers on same local network: no problem

  2. from remote location, able to ftp, telnet, vnc to local server but ssh refuses to connect to server

  3. a) modem forwards port 22 to local server (same for ports 21 & 23 & 80 & ...)

    b) sshd is up and running on server

    c) ufw configured to grant access to port 22: Action "ALLOW IN" from "Anywhere" (checked by issuing command "ufw status numbered & "ufw status verbose")

    d) "service ufw status" reports ufw is active

    e) "lsof i -n -P|grep LISTEN" reports port 22 is listening

    f) "ssh -vvv IP_Address" from remote computer reports this error message: "async io completed with error: 10061" & connection fails

    g) /var/log/auth.log logs the following item after connection refused: "Received signal 15; terminating" which means "some" process has issued a SIGALRM & kernel killed connection attempt

So, at this point, I believe "something" (in ssh configuration files or elsewhere) is blocking remote connections to ssh but don't know where to look at this point...

Any help would be really appreciated since, so far, answers to this previously posted problem have resulted in "generic answers" with no meaningful answers

in flag
Three small questions: (0) Have you confirmed that your ISP is not blocking incoming traffic on port 22? (1) Can you SSH into the machine from another computer on the same network? (2) Is the SSH server running?
ar flag
How are you specifying the server address when you try to `ssh` from outside the network? Is it by the IP address or domain name? If IP address, which one? Is your server at home or in a office?
Doug Smythies avatar
gn flag
Is there anything in `/etc/hosts.deny`?
cn flag
Good evening, 1) checked with ISP (Bell Canada): no ports being blocked (ports 21, 23, 80,... all work fine) 2) if you read my comment, as mentioned yes I'a able to ssh from another computer on local network 3) as mentioned in my post, sshd is running
cn flag
Second comment: to query server from remote computer I use public WAN address as reported by modem. Server is at home and try to access from remote locaton
cn flag
Third comment: nothing defined in /etc/hosts.deny (all lines commented "#"). /etc/hosts.allow has "ALL: 192.168.2.0/24" defined (local network); if I add "smb: 0.0.0.0" remote ssh login still blocked
cn flag
Re Third comment: as far as /etc/hosts.allow is concerned, if problem was related to this config file, would not be able to access local server from remote computer with ftp (port 21), telnet (port 23), http (port 80) so my conclusion is that the problem is specifically related to ssh and one of it's configuration file
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.