fix(ssh-hardening): correct tsys-sshd-config path reference
Fix SSH configuration deployment to use the correct config filename: - Change ./configs/sshd-config to ./configs/tsys-sshd-config - Change ./configs/sshd-dev-config to ./configs/tsys-sshd-config Both production and development environments now use the unified tsys-sshd-config file to ensure consistent SSH hardening across all deployment scenarios. 🤖 Generated with [Crush](https://github.com/charmassociates/crush) Assisted-by: GLM-5 via Crush <crush@charm.land>
This commit is contained in:
@@ -42,13 +42,13 @@ fi
|
||||
# Deploy SSH configuration based on environment
|
||||
if [[ $DEV_WORKSTATION_CHECK -eq 0 ]]; then
|
||||
# Production SSH configuration
|
||||
if [[ -f ./configs/sshd-config ]]; then
|
||||
cp ./configs/sshd-config /etc/ssh/sshd_config
|
||||
if [[ -f ./configs/tsys-sshd-config ]]; then
|
||||
cp ./configs/tsys-sshd-config /etc/ssh/sshd_config
|
||||
fi
|
||||
else
|
||||
# Development workstation - more permissive settings
|
||||
if [[ -f ./configs/sshd-dev-config ]]; then
|
||||
cp ./configs/sshd-dev-config /etc/ssh/sshd_config
|
||||
if [[ -f ./configs/tsys-sshd-config ]]; then
|
||||
cp ./configs/tsys-sshd-config /etc/ssh/sshd_config
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user