import paramiko, sys sys.stdout.reconfigure(encoding='utf-8', errors='replace') c = paramiko.SSHClient(); c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect('101.79.17.164', username='root', password='1q2w3e!Q', timeout=15) def run(label, cmd, timeout=15): _, o, _ = c.exec_command(cmd, timeout=timeout) print(f'\n[{label}]\n' + o.read().decode('utf-8','replace').strip()[:600]) run('새 Company 파일 존재 확인', 'ls /var/www/zioinfo/assets/ | grep -i Company') run('/var/www/zioinfo index.html 내용', 'cat /var/www/zioinfo/index.html | grep -o "Company[^\"]*" | head -5') run('/var/www/zioinfo 최신 시간 파일', 'find /var/www/zioinfo/assets -newer /var/www/zioinfo/assets/Home-BC38QtTl.js 2>/dev/null | wc -l && ' 'find /var/www/zioinfo/assets -newer /var/www/zioinfo/assets/Home-BC38QtTl.js 2>/dev/null | head -5') run('backend static의 Company', 'ls /opt/zioinfo/src/backend/src/main/resources/static/assets/ | grep Company') run('zioinfo 서비스 상태', 'systemctl is-active zioinfo') run('실제 사이트 응답 (greeting)', 'curl -sf -L http://localhost:8082/company/greeting 2>/dev/null | grep -o "Company[^\"]*" | head -3') c.close()