feat(sshd-setup): multi-distro support and verification steps
- sshd-setup.sh: Auto-detect OS (Debian/Ubuntu/Fedora/RHEL/CentOS) - Use appropriate package manager (apt-get vs dnf) - Add verification steps after each major phase - Exit with error if sshd installation fails - Exit with error if sshd doesn't start successfully - Add troubleshooting section in output - kugetsu-install.sh: Add verification that kugetsu binary exists - kugetsu-setup.md: Document multi-distro installation commands
This commit is contained in:
@@ -26,16 +26,23 @@ This guide covers setting up a server/container with kugetsu for remote agent in
|
||||
### Incus
|
||||
|
||||
```bash
|
||||
# Create container
|
||||
# Create container (Debian/Ubuntu)
|
||||
incus launch images:debian/12 <container-name>
|
||||
|
||||
# Or create Fedora container
|
||||
incus launch images:fedora/43 <container-name>
|
||||
|
||||
# Or use an existing container
|
||||
incus exec <container-name> -- bash
|
||||
|
||||
# Ensure systemd is installed (Debian/Ubuntu)
|
||||
# Ensure systemd is installed
|
||||
# For Debian/Ubuntu:
|
||||
incus exec <container-name> -- apt-get update
|
||||
incus exec <container-name> -- apt-get install -y systemd
|
||||
|
||||
# For Fedora:
|
||||
incus exec <container-name> -- dnf install -y systemd
|
||||
|
||||
# Enable systemd in container (Incus specific - verify with your setup)
|
||||
incus config set <container-name> security.syscalls.intercept.systemd true
|
||||
|
||||
@@ -57,16 +64,33 @@ bash skills/kugetsu/scripts/sshd-setup.sh <username>
|
||||
|
||||
Replace `<username>` with your preferred username, or omit to use default `kugetsu`.
|
||||
|
||||
**The script automatically detects your OS and installs the correct packages.**
|
||||
|
||||
Supported OSes: Debian, Ubuntu, Fedora, RHEL, CentOS
|
||||
|
||||
### Manual Setup
|
||||
|
||||
If you prefer to set up SSH manually:
|
||||
|
||||
#### 1. Install openssh-server
|
||||
|
||||
**Debian/Ubuntu:**
|
||||
```bash
|
||||
apt-get update && apt-get install -y openssh-server sudo
|
||||
```
|
||||
|
||||
**Fedora/RHEL/CentOS:**
|
||||
```bash
|
||||
dnf install -y openssh-server sudo
|
||||
```
|
||||
|
||||
#### 2. Verify installation
|
||||
|
||||
```bash
|
||||
which sshd
|
||||
sshd -V
|
||||
```
|
||||
|
||||
#### 2. Create non-root user
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user