yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #69419
[Bug 1437350] Re: Don't use exit status 0 when rejecting login as root
This should be fixed in 0.4.0, please re-open if you still see an issue
there. Exit code is 43.
** Changed in: cirros
Status: Fix Committed => Fix Released
--
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:
Don't use exit status 0 when rejecting login as root
Status in CirrOS:
Fix Released
Status in cloud-init:
Won't Fix
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