[Bug 1698317] [NEW] AllowUsers *@*.local in /etc/ssh/sshd_config does not work

desconocido 1698317 at bugs.launchpad.net
Fri Jun 16 08:10:04 UTC 2017


Public bug reported:

I installed Ubuntu Mate 16.04 on two of my computers. The software has
been brought uptodate to at least May 2017.

They are both on my local wifi network and should both be using Zeroconf/Avahi/Bonjour.
I have the same username on both machines.

I copied /usr/share/doc/avahi-daemon/examples/ssh.service 
to /etc/avahi/services
$ sudo service avahi-daemon restart

I installed sshd on "faustino"
$ sudo apt-get install openssh-server 

With the default /etc/ssh/sshd_config I can succesfully ssh to faustino thus
$ ssh -v localhost			/* from faustino */
$ ssh -v faustino.local		/* from faustino */
$ ssh -v faustino.local		/* from the other computer */

I modified /etc/ssh/sshd_config) to add
LogLevel VERBOSE
PermitRootLogin no
AllowUsers  *@*.local

$ sudo systemctl restart ssh

Now I get, for example

$ ssh faustino.local
username at faustino.local's password: 
Permission denied, please try again.

That fails from the same machine, from another machine and if I try ssh
localhost. All those worked before I put those directives in.

I expected all attempts to ssh from .local addresses to work and all
others to fail.

** Affects: avahi (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: allowusers avahi sshd

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1698317

Title:
  AllowUsers *@*.local in /etc/ssh/sshd_config does not work

Status in avahi package in Ubuntu:
  New

Bug description:
  I installed Ubuntu Mate 16.04 on two of my computers. The software has
  been brought uptodate to at least May 2017.

  They are both on my local wifi network and should both be using Zeroconf/Avahi/Bonjour.
  I have the same username on both machines.

  I copied /usr/share/doc/avahi-daemon/examples/ssh.service 
  to /etc/avahi/services
  $ sudo service avahi-daemon restart

  I installed sshd on "faustino"
  $ sudo apt-get install openssh-server 

  With the default /etc/ssh/sshd_config I can succesfully ssh to faustino thus
  $ ssh -v localhost			/* from faustino */
  $ ssh -v faustino.local		/* from faustino */
  $ ssh -v faustino.local		/* from the other computer */

  I modified /etc/ssh/sshd_config) to add
  LogLevel VERBOSE
  PermitRootLogin no
  AllowUsers  *@*.local

  $ sudo systemctl restart ssh

  Now I get, for example

  $ ssh faustino.local
  username at faustino.local's password: 
  Permission denied, please try again.

  That fails from the same machine, from another machine and if I try
  ssh localhost. All those worked before I put those directives in.

  I expected all attempts to ssh from .local addresses to work and all
  others to fail.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1698317/+subscriptions



More information about the foundations-bugs mailing list