Created
August 2, 2016 09:37
-
-
Save IlyaSemenov/6870737da02f245aab68a32941c54cd6 to your computer and use it in GitHub Desktop.
dokku ssh-keys:list output is useless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@dokku:~# dokku ssh-keys:list | |
+ case "$(lsb_release -si)" in | |
++ lsb_release -si | |
+ export DOKKU_DISTRO=ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOKKU_IMAGE=gliderlabs/herokuish | |
+ DOKKU_IMAGE=gliderlabs/herokuish | |
+ export DOKKU_LIB_ROOT=/var/lib/dokku | |
+ DOKKU_LIB_ROOT=/var/lib/dokku | |
+ export PLUGIN_PATH=/var/lib/dokku/plugins | |
+ PLUGIN_PATH=/var/lib/dokku/plugins | |
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ export DOKKU_API_VERSION=1 | |
+ DOKKU_API_VERSION=1 | |
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ export DOKKU_VALID_EXIT=0 | |
+ DOKKU_VALID_EXIT=0 | |
+ export DOKKU_LOGS_DIR=/var/log/dokku | |
+ DOKKU_LOGS_DIR=/var/log/dokku | |
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ export DOKKU_CONTAINER_LABEL=dokku | |
+ DOKKU_CONTAINER_LABEL=dokku | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=dokku --env=USER=herokuishuser' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=dokku --env=USER=herokuishuser' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args ssh-keys:list | |
+ declare 'desc=top-level cli arg parser' | |
+ local next_index=1 | |
+ local skip=false | |
+ args=("$@") | |
+ local args | |
+ for arg in '"$@"' | |
+ false | |
+ case "$arg" in | |
+ local next_index=2 | |
+ return 0 | |
+ args=("$@") | |
+ [[ ssh-keys:list =~ ^--.* ]] | |
+ has_tty | |
+ declare 'desc=return 0 if we have a tty' | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ root != \d\o\k\k\u ]] | |
+ [[ ! ssh-keys:list =~ plugin:* ]] | |
++ id -un | |
+ export SSH_USER=root | |
+ SSH_USER=root | |
+ sudo -u dokku -E -H /usr/bin/dokku ssh-keys:list | |
+ case "$(lsb_release -si)" in | |
++ lsb_release -si | |
+ export DOKKU_DISTRO=ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOKKU_IMAGE=gliderlabs/herokuish | |
+ DOKKU_IMAGE=gliderlabs/herokuish | |
+ export DOKKU_LIB_ROOT=/var/lib/dokku | |
+ DOKKU_LIB_ROOT=/var/lib/dokku | |
+ export PLUGIN_PATH=/var/lib/dokku/plugins | |
+ PLUGIN_PATH=/var/lib/dokku/plugins | |
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ export DOKKU_API_VERSION=1 | |
+ DOKKU_API_VERSION=1 | |
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ export DOKKU_VALID_EXIT=0 | |
+ DOKKU_VALID_EXIT=0 | |
+ export DOKKU_LOGS_DIR=/var/log/dokku | |
+ DOKKU_LOGS_DIR=/var/log/dokku | |
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ export DOKKU_CONTAINER_LABEL=dokku | |
+ DOKKU_CONTAINER_LABEL=dokku | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=dokku --env=USER=herokuishuser' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=dokku --env=USER=herokuishuser' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args ssh-keys:list | |
+ declare 'desc=top-level cli arg parser' | |
+ local next_index=1 | |
+ local skip=false | |
+ args=("$@") | |
+ local args | |
+ for arg in '"$@"' | |
+ false | |
+ case "$arg" in | |
+ local next_index=2 | |
+ return 0 | |
+ args=("$@") | |
+ [[ ssh-keys:list =~ ^--.* ]] | |
+ has_tty | |
+ declare 'desc=return 0 if we have a tty' | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
++ id -un | |
+ [[ dokku != \r\o\o\t ]] | |
+ [[ ssh-keys:list =~ ^plugin:.* ]] | |
+ [[ -n '' ]] | |
+ dokku_auth ssh-keys:list | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=root | |
+ SSH_USER=root | |
+ export SSH_NAME=default | |
+ SSH_NAME=default | |
+ plugn trigger user-auth root default ssh-keys:list | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ssh-keys:list == ssh-keys* ]] | |
+ check_ssh_keys_user root default ssh-keys:list | |
+ declare 'desc=check user running ssh-keys' | |
+ local SSH_USER=root SSH_NAME=default | |
+ [[ root == \r\o\o\t ]] | |
+ return 0 | |
+ case "$1" in | |
+ execute_dokku_cmd ssh-keys:list | |
+ declare 'desc=executes dokku sub-commands' | |
+ local PLUGIN_NAME=ssh-keys:list | |
+ local PLUGIN_CMD=ssh-keys:list | |
+ local implemented=0 | |
+ local script | |
+ argv=("$@") | |
+ local argv | |
+ case "$PLUGIN_NAME" in | |
++ readlink -f /var/lib/dokku/plugins/enabled/ssh-keys | |
+ [[ /var/lib/dokku/core-plugins/available/ssh-keys == *core-plugins* ]] | |
+ [[ ssh-keys:list == \s\s\h\-\k\e\y\s\:\l\i\s\t ]] | |
+ shift 1 | |
+ [[ ! -z '' ]] | |
+ set -- ssh-keys:list | |
+ [[ -x /var/lib/dokku/plugins/enabled/ssh-keys:list/subcommands/default ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/ssh-keys:list/subcommands/ssh-keys:list ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/ssh-keys/subcommands/list ]] | |
+ /var/lib/dokku/plugins/enabled/ssh-keys/subcommands/list ssh-keys:list | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/ssh-keys/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+ list_ssh_keys ssh-keys:list | |
+ declare 'desc=List ssh key hashes' | |
+ local cmd=ssh-keys:list | |
+ verify_ssh_key_file | |
+ declare 'desc=Test that public key is valid' | |
+ [[ -s /home/dokku/.ssh/authorized_keys ]] | |
+ ssh-keygen -l -f /home/dokku/.ssh/authorized_keys | |
+ sshcommand list dokku | |
SSHCOMMAND_ALLOWED_KEYS: no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding | |
SSHCOMMAND_ALLOWED_KEYS: no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding | |
+ implemented=1 | |
+ [[ 1 -eq 0 ]] | |
+ [[ 1 -eq 0 ]] | |
+ exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment