Files
nuc/setup-ssh.sh
Alejandro Gutiérrez 390eda1595 Initial commit - NUC server configuration and docs
- CLAUDE.md: Server instructions and service reference
- docs/: Persistent documentation (architecture, guides)
- .artifacts/: Session-generated notes
- playwriter-browser/: Remote browser container config

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 20:49:20 +00:00

24 lines
720 B
Bash
Executable File

#!/bin/bash
# Setup SSH config for NUC server
SSH_CONFIG="$HOME/.ssh/config"
NUC_CONFIG="Host nuc
HostName 192.168.1.3
User alezmad
IdentityFile ~/.ssh/id_ed25519_nuc"
# Check if nuc config already exists
if grep -q "Host nuc" "$SSH_CONFIG" 2>/dev/null; then
echo "NUC SSH config already exists in $SSH_CONFIG"
else
echo "Adding NUC config to $SSH_CONFIG"
echo "" >> "$SSH_CONFIG"
echo "$NUC_CONFIG" >> "$SSH_CONFIG"
echo "Done! You can now connect with: ssh nuc"
fi
# Test connection
echo ""
echo "Testing connection..."
ssh -o ConnectTimeout=5 nuc "echo 'Successfully connected to NUC!'" 2>/dev/null || echo "Connection failed. Make sure the SSH key exists at ~/.ssh/id_ed25519_nuc"