[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#659289: openssh-client: ControlMaster not honored when Hostname refers to a previously defined machine



Package: openssh-client
Version: 1:5.9p1-2
Severity: important
File: /usr/bin/ssh
Tags: pca.it-authentication

Hi there!

I am struggling to find a way to configure Sync Mail Dir [1] to use a
password-less SSH key.

[1] <http://syncmaildir.sourceforge.net/>

Here is my ~/.ssh/config:

--8<---------------cut here---------------start------------->8---
   Host = myimapserver.domain.com
   Host = myimapserver-smd.domain.com
     Hostname = myimapserver.domain.com
     IdentityFile = ~/.ssh/id_rsa_smd
     ControlMaster = no
   Host = *
     IdentityFile = ~/.ssh/id_rsa
   HashKnownHosts = no
   ControlMaster = auto
   ControlPath = ~/.ssh/master_%r@%h:%p
--8<---------------cut here---------------end--------------->8---

However, the ControlMaster option for myimapserver-smd.domain.com is not
honored:
=====
$ ssh -v myimapserver-smd.domain.com
OpenSSH_5.9p1 Debian-2, OpenSSL 1.0.0g 18 Jan 2012
debug1: Reading configuration data /home/luca/.ssh/config
debug1: /home/luca/.ssh/config line 75: Applying options for myimapserver-smd.domain.com
debug1: /home/luca/.ssh/config line 94: Applying options for *.domain.com
debug1: /home/luca/.ssh/config line 127: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Control socket "/home/luca/.ssh/master_luca@myimapserver.domain.com:22" does not exist
=====

This is in contrast with what /etc/ssh/ssh_config contains:

--8<---------------cut here---------------start------------->8---
# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openssh-client depends on:
ii  adduser                3.113+nmu1
ii  debconf [debconf-2.0]  1.5.41
ii  dpkg                   1.16.1.2
ii  libc6                  2.13-24
ii  libedit2               2.11-20080614-3
ii  libgssapi-krb5-2       1.10+dfsg~beta1-2
ii  libselinux1            2.1.0-4.1
ii  libssl1.0.0            1.0.0g-1
ii  passwd                 1:4.1.4.2+svn3283-3
ii  zlib1g                 1:1.2.3.4.dfsg-3

Versions of packages openssh-client recommends:
ii  openssh-blacklist        0.4.1
ii  openssh-blacklist-extra  0.4.1
ii  xauth                    1:1.0.6-1

Versions of packages openssh-client suggests:
pn  keychain      <none>
pn  libpam-ssh    <none>
pn  monkeysphere  <none>
pn  ssh-askpass   <none>

-- no debconf information

Attachment: pgpoJmQ9ftiia.pgp
Description: PGP signature


Reply to: