[Bug 1188610] [NEW] sshd_config is modified/replaced

Scott Moser smoser at ubuntu.com
Fri Jun 7 13:15:44 UTC 2013


Public bug reported:

After launching an instance on azure from the "quick start" and typing a
password in, I ssh'd in.

I wanted to llook at sshd_config, and couldn't without being root.

The permissions on sshd_config are set to:
# ls -l /etc/ssh/sshd_config
-rw------- 1 root root 674 Jun  3 10:41 /etc/ssh/sshd_config

Also, comments are stripped out of the file.

It has been modified and is different than the stock ubuntu sshd (as in the cloud images).
diff'ing a sorted version found in azure and that found in the same ubuntu release (12.04) on amazon I find:

--- sshd_config.azure	2013-06-07 13:06:43.641223901 +0000
+++ sshd_config	2013-06-07 13:06:25.421223900 +0000
@@ -1,6 +1,5 @@
 AcceptEnv LANG LC_*
 ChallengeResponseAuthentication no
-ClientAliveInterval 180
 HostbasedAuthentication no
 HostKey /etc/ssh/ssh_host_dsa_key
 HostKey /etc/ssh/ssh_host_ecdsa_key
@@ -9,7 +8,7 @@
 KeyRegenerationInterval 3600
 LoginGraceTime 120
 LogLevel INFO
-PasswordAuthentication yes
+PasswordAuthentication no
 PermitEmptyPasswords no
 PermitRootLogin yes
 Port 22

the PasswordAuthentication change makes sense, but I dont' see an
obvious justification for  'ClientAliveInterval' addition.  Just reading
the man page seems to indicate that with this setting, my idle
connection will be broken after 3 x 180 (3==ClientAliveCountMax
default).

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: walinuxagent 1.3.2-0ubuntu1~12.04.1
ProcVersionSignature: Ubuntu 3.2.0-45.70-virtual 3.2.44
Uname: Linux 3.2.0-45-virtual x86_64
ApportVersion: 2.0.1-0ubuntu17.2
Architecture: amd64
Date: Fri Jun  7 12:40:51 2013
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: walinuxagent
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug precise

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

Title:
  sshd_config is modified/replaced

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



More information about the Ubuntu-server-bugs mailing list