Implement SSH user data handling and adjust volume size

- Added functions to generate SSH user data in cloud-config format and encode it in Base64 for server creation.
- Updated the `create_gpu_server` function to include public key handling for SSH access.
- Adjusted the default boot volume size from 40GB to 30GB in `os_client.py`.
- Enhanced the `cmd_up` function to manage SSH key injection and server state more effectively.
- Improved logging for SSH connection attempts and error handling in `wait_ssh` to provide clearer feedback on authentication issues.
This commit is contained in:
Leonid Pershin
2026-08-21 04:35:02 +03:00
parent d6d247875b
commit 1f7237f7db
6 changed files with 155 additions and 22 deletions
+2 -3
View File
@@ -12,9 +12,8 @@ GPU_RENT_AZ=ru-7a
SSH_PRIVATE_KEY_PATH=
SSH_USER=ubuntu
# Optional: force SSH security-group CIDR (default = your public IP /32).
# If WARP/VPN and SSH hangs: GPU_RENT_SSH_CIDR=0.0.0.0/0
# GPU_RENT_SSH_CIDR=0.0.0.0/0
# Spike / WARP: open SSH. Tighten to your /32 later.
GPU_RENT_SSH_CIDR=0.0.0.0/0
BOOT_VOLUME_ID=
DATA_VOLUME_ID=