Adding cloud-init as affacted project, because it also behavaes in this
way.

** Also affects: cloud-init
   Importance: Undecided
       Status: New

-- 
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/1437350

Title:
  cirros uses exit status 0 when trying to login as root

Status in CirrOS a tiny cloud guest:
  In Progress
Status in Init scripts for use on cloud images:
  New

Bug description:
  $ ssh -i mykey root@10.1.0.2 ls
  Warning: Permanently added '10.1.0.2' (RSA) to the list of known hosts.
  Please login as 'cirros' user, not as root

  $ echo $?
  0

  Since the command is not executed the exit status should be non 0.

  
  /root/.ssh/authorized_keys:
  command="echo Please login as \'cirros\' user, not as root; echo; sleep 10" 
this part should be changed to:
  "echo Please login as \'cirros\' user, not as root; echo; sleep 10; exit 1"

To manage notifications about this bug go to:
https://bugs.launchpad.net/cirros/+bug/1437350/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to