Update SSH port from 22 to 2222 in Dockerfile, entrypoint, and Kubernetes configurations
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m35s
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m35s
This commit is contained in:
parent
b715b4bb59
commit
5584dc1f29
9 changed files with 31 additions and 24 deletions
|
|
@ -10,6 +10,12 @@ WEBSSH2_PID=""
|
|||
NGINX_PID=""
|
||||
BOOTSTRAP_KUBECONFIG="${BOOTSTRAP_KUBECONFIG:-/bootstrap/kubeconfig/config}"
|
||||
ENABLE_BOOTSTRAP_KUBECONFIG="${ENABLE_BOOTSTRAP_KUBECONFIG:-false}"
|
||||
SSH_PORT="${SSH_PORT:-2222}"
|
||||
|
||||
if [[ -z "${WEBSSH2_SSH_PORT:-}" ]]; then
|
||||
WEBSSH2_SSH_PORT="${SSH_PORT}"
|
||||
fi
|
||||
export WEBSSH2_SSH_PORT
|
||||
|
||||
ensure_host_keys() {
|
||||
if [[ ! -f "${STATE_DIR}/ssh_host_rsa_key" ]]; then
|
||||
|
|
@ -187,6 +193,7 @@ render_sshd_auth_config() {
|
|||
fi
|
||||
|
||||
cat > "${SSH_DYNAMIC_CONFIG}" <<EOF
|
||||
Port ${SSH_PORT}
|
||||
PasswordAuthentication ${password_value}
|
||||
KbdInteractiveAuthentication ${keyboard_interactive_value}
|
||||
EOF
|
||||
|
|
@ -212,7 +219,7 @@ start_services() {
|
|||
nginx -g 'daemon off;' &
|
||||
NGINX_PID=$!
|
||||
|
||||
log "sshd started on port 22."
|
||||
log "sshd started on port ${SSH_PORT}."
|
||||
log "WebSSH2 started on port ${WEBSSH2_LISTEN_PORT}."
|
||||
log "nginx redirect/proxy started on port ${WEB_SSH_PORT}."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue