/sshd_config /etc/ssh/sshd_config
# 3. Restart service
systemctl restart sshd || service sshd restart
```
---
### ⚠️ Disclaimer
This script modifies critical system configurations (SSH). While it includes multiple safety checks and automatic rollback mechanisms, **please ensure you have an alternative access method** (such as a VNC/KVM Console) to your server to prevent lockout in case of network interruptions or unexpected configuration errors.
### 📄 License
This project is released under the [MIT License](LICENSE).
---
If you found this tool helpful, please give it a ⭐ Star!
[Report Bug](https://github.com/247like/linux-ssh-init-sh/issues) · [Request Feature](https://github.com/247like/linux-ssh-init-sh/issues)