Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.security > #5373 > unrolled thread
| Started by | Adam Weremczuk <adamw@matrixscience.com> |
|---|---|
| First post | 2018-01-11 18:00 +0100 |
| Last post | 2018-01-11 18:40 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.debian.security
failing ssh login attempts Adam Weremczuk <adamw@matrixscience.com> - 2018-01-11 18:00 +0100
Re: failing ssh login attempts Peter Ludikovsky <peter@ludikovsky.name> - 2018-01-11 18:20 +0100
Re: failing ssh login attempts Adam Weremczuk <adamw@matrixscience.com> - 2018-01-12 10:00 +0100
Re: failing ssh login attempts Ulf Volmer <u.volmer@u-v.de> - 2018-01-12 13:10 +0100
Re: failing ssh login attempts Ulf Volmer <u.volmer@u-v.de> - 2018-01-11 18:40 +0100
| From | Adam Weremczuk <adamw@matrixscience.com> |
|---|---|
| Date | 2018-01-11 18:00 +0100 |
| Subject | failing ssh login attempts |
| Message-ID | <v6OmR-3BA-9@gated-at.bofh.it> |
Hi all,
I recently performed a series of distro upgrades starting from 7.1
landing at 9.2.
I have a script running on another 7.1 machine which was connecting fine
to 7.1 but now it fails after reading authorized_keys file as below:
11437 read(4, "from=\"*.example.com\" ssh-rsa AAAAXXXXXXXXXX"..., 4096)
= 4096
11437 getpid() = 11437
11437 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 8
11437 connect(8, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
11437 sendto(8, "<38>Jan 11 16:21:32 sshd[11437]: Authentication tried
for userx with correct key but not from a permitted host
(host=192.168.XXX.XXX, ip=192.168.XXX.XXX)"..., 147, MSG_NOSIGNAL, NULL,
0) = 147
11437 close(8)
So I've tried, -vvv from the source, DEBUG3 on the destination and the
strace above but can't see anything (such as reversed DNS lookup) apart
from this single error message.
Connection is established fine when I replace *.example.com with an IP
address but that's not very scalable.
Can somebody possibly put me in the right direction?
Regards
Adam Weremczuk
[toc] | [next] | [standalone]
| From | Peter Ludikovsky <peter@ludikovsky.name> |
|---|---|
| Date | 2018-01-11 18:20 +0100 |
| Message-ID | <v6OGd-416-1@gated-at.bofh.it> |
| In reply to | #5373 |
[Multipart message — attachments visible in raw view] — view raw
Hi!
The change was possibly introduced in the latest release, with the
change from OpenSSH 6.7 to OpenSSH 7.4. OpenSSH 6.8 set the option
UseDNS to default "no":
> * sshd(8): UseDNS now defaults to 'no'. Configurations that match
> against the client host name (via sshd_config or authorized_keys)
> may need to re-enable it or convert to matching against addresses.
Source: https://www.openssh.com/txt/release-6.8
Regards,
/peter
Am 11.01.2018 um 17:44 schrieb Adam Weremczuk:
> Hi all,
>
> I recently performed a series of distro upgrades starting from 7.1
> landing at 9.2.
>
> I have a script running on another 7.1 machine which was connecting fine
> to 7.1 but now it fails after reading authorized_keys file as below:
>
> 11437 read(4, "from=\"*.example.com\" ssh-rsa AAAAXXXXXXXXXX"..., 4096)
> = 4096
> 11437 getpid() = 11437
> 11437 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 8
> 11437 connect(8, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
> 11437 sendto(8, "<38>Jan 11 16:21:32 sshd[11437]: Authentication tried
> for userx with correct key but not from a permitted host
> (host=192.168.XXX.XXX, ip=192.168.XXX.XXX)"..., 147, MSG_NOSIGNAL, NULL,
> 0) = 147
> 11437 close(8)
>
> So I've tried, -vvv from the source, DEBUG3 on the destination and the
> strace above but can't see anything (such as reversed DNS lookup) apart
> from this single error message.
>
> Connection is established fine when I replace *.example.com with an IP
> address but that's not very scalable.
>
> Can somebody possibly put me in the right direction?
>
> Regards
> Adam Weremczuk
>
[toc] | [prev] | [next] | [standalone]
| From | Adam Weremczuk <adamw@matrixscience.com> |
|---|---|
| Date | 2018-01-12 10:00 +0100 |
| Message-ID | <v73lT-5yc-5@gated-at.bofh.it> |
| In reply to | #5374 |
That was it, working now. Thank you Peter and everybody else who replied :) For the future - would you recommend a list / forum better suited for these kinds of questions? On 11/01/2018 17:08, Peter Ludikovsky wrote: > Hi! > > The change was possibly introduced in the latest release, with the > change from OpenSSH 6.7 to OpenSSH 7.4. OpenSSH 6.8 set the option > UseDNS to default "no": > >> * sshd(8): UseDNS now defaults to 'no'. Configurations that match >> against the client host name (via sshd_config or authorized_keys) >> may need to re-enable it or convert to matching against addresses. > Source: https://www.openssh.com/txt/release-6.8 > > Regards, > /peter >
[toc] | [prev] | [next] | [standalone]
| From | Ulf Volmer <u.volmer@u-v.de> |
|---|---|
| Date | 2018-01-12 13:10 +0100 |
| Message-ID | <v76jL-7TD-1@gated-at.bofh.it> |
| In reply to | #5377 |
On 12.01.2018 09:55, Adam Weremczuk wrote: > For the future - would you recommend a list / forum better suited for > these kinds of questions? the debian-user mailing list is usually a good place for all debian related questions. best regards, Ulf
[toc] | [prev] | [next] | [standalone]
| From | Ulf Volmer <u.volmer@u-v.de> |
|---|---|
| Date | 2018-01-11 18:40 +0100 |
| Message-ID | <v6OZz-48y-9@gated-at.bofh.it> |
| In reply to | #5373 |
On 11.01.2018 17:44, Adam Weremczuk wrote: > 11437 read(4, "from=\"*.example.com\" ssh-rsa AAAAXXXXXXXXXX"..., 4096) > = 4096 > Connection is established fine when I replace *.example.com with an IP > address but that's not very scalable. i guess, you have to set 'UseDNS yes' in sshd_config. best regards Ulf
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.security
csiph-web