diff options
author | Eduardo Otubo <otubo@redhat.com> | 2020-07-15 20:21:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 14:21:02 -0400 |
commit | e161059a18173e2b61c54dba9eab774401fb5f1f (patch) | |
tree | cd628210ff953adc001a8ff81a497026be703a83 /doc | |
parent | 4fe576516d65feda17ba78e9265a8e494a195e7b (diff) | |
download | vyos-cloud-init-e161059a18173e2b61c54dba9eab774401fb5f1f.tar.gz vyos-cloud-init-e161059a18173e2b61c54dba9eab774401fb5f1f.zip |
ssh exit with non-zero status on disabled user (#472)
It is confusing for scripts, where a disabled user has been specified,
that ssh exits with a zero status by default without indication anything
failed.
I think exitting with a non-zero status would make more clear in scripts
and automated setups where things failed, thus making noticing the issue
and debugging easier.
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Signed-off-by: Aleksandar Kostadinov <akostadi@redhat.com>
LP: #1170059
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/cloud-config.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt index 20a0ce0d..f3ae5e68 100644 --- a/doc/examples/cloud-config.txt +++ b/doc/examples/cloud-config.txt @@ -236,7 +236,7 @@ disable_root: false # The string '$USER' will be replaced with the username of the default user. # The string '$DISABLE_USER' will be replaced with the username to disable. # -# disable_root_opts: no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"$USER\" rather than the user \"$DISABLE_USER\".';echo;sleep 10" +# disable_root_opts: no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"$USER\" rather than the user \"$DISABLE_USER\".';echo;sleep 10;exit 142" # disable ssh access for non-root-users # To disable ssh access for non-root users, ssh_redirect_user: true can be |