Connection refused
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers: ssh: connect to host az port 22: Connection refused At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help. How can I allow connections from outside again? Thank you in advance, Wolfgang
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ? -- Per Jessen, Zürich (16.9°C)
On 10.06.22 10:18, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ?
Also (or ... to do that ...) run "journalctl -u sshd" as root. If this does not give any clues, replace "-u" with "-fu", type a few CRs and then try to connect. Josef -- SUSE Software Solutions Germany GmbH Frankenstraße 146 90461 Nürnberg Germany Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman (HRB 36809, AG Nürnberg) www.suse.com
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused. Best regards, Wolfgang
On 2022-06-10 10:54, Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
The defaults on new installations is not to start the ssh daemon. -- Cheers / Saludos, Carlos E. R. (from Elesar, using openSUSE Leap 15.3)
On 10.06.22 11:47, Carlos E. R. wrote:
On 2022-06-10 10:54, Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
The defaults on new installations is not to start the ssh daemon.
"Yesterday I upgraded one of my computers to Leap 15.4." does not sound like a "new installation" to me ... Josef -- SUSE Software Solutions Germany GmbH Frankenstraße 146 90461 Nürnberg Germany Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman (HRB 36809, AG Nürnberg) www.suse.com
On Fri, 10 Jun 2022 at 11:59:18 +0200, Josef Moellers wrote:
On 10.06.22 11:47, Carlos E. R. wrote:
On 2022-06-10 10:54, Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
The defaults on new installations is not to start the ssh daemon.
"Yesterday I upgraded one of my computers to Leap 15.4." does not sound like a "new installation" to me ...
You are right, it was a new installation, but I left the partitions unchanged that did not contain the system. That's the reason why I wrote "I upgraded", but now, respecting your objection, which is completely justified, I am going to avoid this verb in further posts. Cheers, Wolfgang
On 2022-06-10 12:48, Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 11:59:18 +0200, Josef Moellers wrote:
On 10.06.22 11:47, Carlos E. R. wrote:
On 2022-06-10 10:54, Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
The defaults on new installations is not to start the ssh daemon.
"Yesterday I upgraded one of my computers to Leap 15.4." does not sound like a "new installation" to me ...
You are right, it was a new installation, but I left the partitions unchanged that did not contain the system. That's the reason why I wrote "I upgraded", but now, respecting your objection, which is completely justified, I am going to avoid this verb in further posts.
I am aware that many people say "upgrade" when it is a new install over a previous one :-) So I guessed that it was in fact "not a strict upgrade" :-) -- Cheers / Saludos, Carlos E. R. (from Elesar, using openSUSE Leap 15.3)
Carlos E. R. wrote:
On 2022-06-10 10:54, Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
The defaults on new installations is not to start the ssh daemon.
Unless you install over ssh :-) -- Per Jessen, Zürich (19.4°C)
On 2022-06-10 13:07, Per Jessen wrote:
Carlos E. R. wrote:
On 2022-06-10 10:54, Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
The defaults on new installations is not to start the ssh daemon.
Unless you install over ssh :-)
Ah, interesting detail. Makes sense. -- Cheers / Saludos, Carlos E. R. (from Elesar, using openSUSE Leap 15.3)
Wolfgang Mueller wrote:
On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
Hi Wolfgang I'm glad it helped. I would check the status of your sshd - "systemctl status sshd". Make sure it is enabled. If it is enabled (which I feel certain it is), there will be a reason why it failed to start. -- Per Jessen, Zürich (19.5°C)
From: Wolfgang Mueller <wm@ariannuccia.de> Date: Fri, 10 Jun 2022 10:54:28 +0200 On Fri, 10 Jun 2022 at 10:18:24 +0200, Per Jessen wrote:
Wolfgang Mueller wrote:
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused ...
Maybe check that sshd is running and listening on port 22 ?
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused. Best regards, Wolfgang For future use, you can try "ssh -v" to find out where the client is getting stuck. The "-v" option can be repeated up to three times. "ssh -vvv" gives me more than six pages of detail for a successful connection, and is a great help in narrowing things down. -- Bob Rogers http://www.rgrjr.com/
Le 11/06/2022 à 18:53, Bob Rogers a écrit :
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
sshd is not default from a very long time. I use to install remote servers and have to double check if I opened ssh (firewall + daemon) before leaving the install else I have no way to join the server :-) jdd -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Le 11/06/2022 à 18:53, Bob Rogers a écrit :
Thank you very much, Per. You have found the error immediately. After starting sshd, connections are no longer refused.
sshd is not default from a very long time. I use to install remote servers and have to double check if I opened ssh (firewall + daemon) before leaving the install else I have no way to join the server :-)
ISTR opening a ticket on precisely that, years ago. When you install over ssh, sshd will be started by default. -- Per Jessen, Zürich (26.1°C)
Am 10.06.22 um 10:16 schrieb Wolfgang Mueller:
Yesterday I upgraded one of my computers to Leap 15.4. Everything works fine except for problems with the network. When I try to connect to it from outside by ssh, it answers:
ssh: connect to host az port 22: Connection refused
At first I thought it was a firewall problem. So, I stopped firewalld and changed the start mode to "manual" in yast. But that did not help.
How can I allow connections from outside again?
Thank you in advance, Wolfgang
i am on tumbleweed and have had a vew month in past some problems copnnecting to a old server: if you connect to a old system, it might be that the key methode will not work any more your client offer. newer ssh has drop or disabled some of the old methodes. but my error message was a little different could also that the key is verry old and you have to generate new keys you could tell the ssh to use old key methode, but you should not do this if you go over internet...... some parts of my notes: according to :https://tools.ietf.org/id/draft-ietf-curdle-ssh-kex-sha2-09.html maybe use for older systems (best of the worse for very old systems): diffie-hellman-group14-sha1 (or for your case maybe a more weak is needed, or a better could be used) at to /etc/ssh/ssh_config 4 new lines: Host yourhostname KexAlgorithms +diffie-hellman-group14-sha1 Host your.host.ipv4.adress KexAlgorithms +diffie-hellman-group14-sha1 same/similar to this should work the oposite way, if you have a new host and try to connect from a old client. again if is this problem be sure you know what you do, otherwise you will drill a nice hole into your security...... better ist to update the ssh / sshd on both sides (if possible). simoN -- www.becherer.de
participants (7)
-
Bob Rogers
-
Carlos E. R.
-
jdd@dodin.org
-
Josef Moellers
-
Per Jessen
-
Simon Becherer
-
Wolfgang Mueller