[Bug 1487361] Re: 6.9 stopped respecting User in previous stanzas

2015-08-21 Thread Colin Watson
It makes a difference for me, but CanonicalizeHostname has to be in the
right part of the file (not inside an inapplicable Host block; note that
indentation doesn't actually matter).  Perhaps I could see your whole
.ssh/config?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1487361

Title:
  6.9 stopped respecting User in previous stanzas

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1487361] Re: 6.9 stopped respecting User in previous stanzas

2015-08-21 Thread Martin Pitt
Ah, thanks! I indeed had it after a Host block with indentation /
paragraph, so I was misled in thinking of them as actual paragraphs.
Putting CanonicalizeHostname at the top of the file indeed works.

So it seems this was a deliberate change, or just accidentally happened
to work before. So I guess we can close this. Thank you for your help!


** Changed in: openssh (Ubuntu)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1487361

Title:
  6.9 stopped respecting User in previous stanzas

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1487361] Re: 6.9 stopped respecting User in previous stanzas

2015-08-21 Thread Martin Pitt
** Description changed:

  My ~/.ssh/config has
  
  Host *.canonical.com
- User pitti
+ User pitti
  
  and some convenience aliases as the actual host names change from time
  to time:
  
  Host cdimage
- HostName nusakan.canonical.com
+ HostName nusakan.canonical.com
  
  Host langpack
- HostName macquarie.canonical.com
+ HostName macquarie.canonical.com
  
  For years, until the previous Wily version 6.7 this was working as
  expected. But since today with 6.9 trying to ssh to e. g. langpack
  stopped taking the User pitti into account:
  
  $ ssh -v cdimage
  [...]
  debug1: Authenticating to nusakan.canonical.com:22 as 'martin'
  [...]
  Permission denied (publickey).
  
  martin is my local user name at my laptop, i. e. the  default when
  User isn't set.
  
+ If I don't use the alias and do ssh nusakan.canonical.com it does
+ apply the User setting.
+ 
  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: openssh-client 1:6.9p1-1
  ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
  Uname: Linux 4.1.0-3-generic x86_64
  ApportVersion: 2.18-0ubuntu7
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Aug 21 10:14:46 2015
  EcryptfsInUse: Yes
  RelatedPackageVersions:
-  ssh-askpass   N/A
-  libpam-sshN/A
-  keychain  N/A
-  ssh-askpass-gnome 1:6.9p1-1
+  ssh-askpass   N/A
+  libpam-sshN/A
+  keychain  N/A
+  ssh-askpass-gnome 1:6.9p1-1
  SSHClientVersion: OpenSSH_6.9p1 Ubuntu-1, OpenSSL 1.0.2d 9 Jul 2015
  SourcePackage: openssh
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1487361

Title:
  6.9 stopped respecting User in previous stanzas

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1487361] Re: 6.9 stopped respecting User in previous stanzas

2015-08-21 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: openssh (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1487361

Title:
  6.9 stopped respecting User in previous stanzas

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1487361] Re: 6.9 stopped respecting User in previous stanzas

2015-08-21 Thread Martin Pitt
CanonicalizeHostname yes does not make any difference. Also, that part
actually seems to work fine (ssh langpack correctly resolves to
macquarie.canonical.com), it's the User from the previous Host * match
which isn't applied.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1487361

Title:
  6.9 stopped respecting User in previous stanzas

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1487361] Re: 6.9 stopped respecting User in previous stanzas

2015-08-21 Thread Martin Pitt
Andy pointed out Match; I haven't heard of/used it before, but doing

Match Host *.canonical.com
User pitti

gives exactly the same behaviour.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1487361

Title:
  6.9 stopped respecting User in previous stanzas

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1487361] Re: 6.9 stopped respecting User in previous stanzas

2015-08-21 Thread Colin Watson
I think this was deliberate upstream, probably this:

- ssh(1): Tweak config re-parsing with host canonicalisation - make the
  second pass through the config files always run when host name
  canonicalisation is enabled (and not whenever the host name changes)

In fact this was not documented to work before; even in Debian stable
the documentation for Host says The host is the hostname argument given
on the command line (i.e. the name is not converted to a canonicalized
host name before matching).

Try CanonicalizeHostname yes, which is documented to control this.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1487361

Title:
  6.9 stopped respecting User in previous stanzas

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs