← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1322640] [NEW] cloud-init fails to restart ssh server

 

Public bug reported:

In the past I've been able to start ssh on a non-standard port with the
user script below.  However since upgrading from 12.04, I must manually
restart the ssh server on the new instance after it boots.


Content-Type: multipart/mixed; boundary="===============2128276640157684233=="
MIME-Version: 1.0

--===============2128276640157684233==
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="user-script.txt"

#!/bin/sh

# change ssh port 22 to non-standard port and restart sshd
sed -i "s/^Port 22$/Port 622/" /etc/ssh/sshd_config
/etc/init.d/ssh restart

** Affects: cloud-init
     Importance: Undecided
         Status: New


** Tags: cloud-init ssh

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1322640

Title:
  cloud-init fails to restart ssh server

Status in Init scripts for use on cloud images:
  New

Bug description:
  In the past I've been able to start ssh on a non-standard port with
  the user script below.  However since upgrading from 12.04, I must
  manually restart the ssh server on the new instance after it boots.

  
  Content-Type: multipart/mixed; boundary="===============2128276640157684233=="
  MIME-Version: 1.0

  --===============2128276640157684233==
  Content-Type: text/x-shellscript; charset="us-ascii"
  MIME-Version: 1.0
  Content-Transfer-Encoding: 7bit
  Content-Disposition: attachment; filename="user-script.txt"

  #!/bin/sh

  # change ssh port 22 to non-standard port and restart sshd
  sed -i "s/^Port 22$/Port 622/" /etc/ssh/sshd_config
  /etc/init.d/ssh restart

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1322640/+subscriptions


Follow ups

References