Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241572
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: openssh server remote access |
| Date | 2021-10-21 23:40 +0200 |
| Message-ID | <DaNX4-7bl-17@gated-at.bofh.it> (permalink) |
| References | <DaNaF-6Fb-3@gated-at.bofh.it> <DaNaF-6Fb-5@gated-at.bofh.it> <DaNaF-6Fb-1@gated-at.bofh.it> <DaNu1-71r-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Oct 21, 2021 at 09:07:02PM +0000, Semih Ozlem wrote: > Yes the error message is > > ssh: connect to host (ip address of remote host) port 22: Connection refused This message means one of these things: 1) The sshd process is not running, or is not listening on the default port. 2) A firewall is preventing your connection. You would normally check the first thing by using "ss" or "netstat" on the server, and verifying that the process is indeed LISTEN-ing on the expected interface(s) and port. For example: unicorn:~$ ss -ant | grep :22 LISTEN 0 128 0.0.0.0:22 0.0.0.0:* [...] This tells me that something is listning on port 22 on all IPv4 interfaces. If you don't see a line like this, then you need to investigate the ssh service more deeply. Perhaps start by running "journalctl -u ssh" to read its logs. If you *do* see a line like this, then you need to look at network-level stuff, like firewalls, routers, and so on.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: openssh server remote access Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-10-21 22:50 +0200
Re: openssh server remote access Joe <joe@jretrading.com> - 2021-10-21 23:10 +0200
Re: openssh server remote access Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-10-23 07:50 +0200
Re: openssh server remote access Joe <joe@jretrading.com> - 2021-10-23 10:40 +0200
Re: openssh server remote access Andrei POPESCU <andreimpopescu@gmail.com> - 2021-10-23 13:30 +0200
Re: openssh server remote access Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-10-21 23:10 +0200
Re: openssh server remote access Greg Wooledge <greg@wooledge.org> - 2021-10-21 23:40 +0200
Re: openssh server remote access Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-10-22 01:00 +0200
Re: openssh server remote access David <bouncingcats@gmail.com> - 2021-10-22 01:10 +0200
Re: openssh server remote access "James B" <portoteacher80@fastmail.com> - 2021-10-22 01:20 +0200
Re: openssh server remote access "James B" <portoteacher80@fastmail.com> - 2021-10-22 01:30 +0200
Re: openssh server remote access Andrei POPESCU <andreimpopescu@gmail.com> - 2021-10-22 13:00 +0200
Re: openssh server remote access Eric S Fraga <e.fraga@ucl.ac.uk> - 2021-10-22 13:10 +0200
Re: openssh server remote access David Wright <deblis@lionunicorn.co.uk> - 2021-10-22 16:50 +0200
Re: openssh server remote access Eric S Fraga <e.fraga@ucl.ac.uk> - 2021-10-22 19:20 +0200
csiph-web