Initial commit - huishou project

This commit is contained in:
jiapengyu
2026-07-27 13:46:06 +08:00
parent 7955038435
commit 819f56391c
2 changed files with 16 additions and 12 deletions
+14
View File
@@ -0,0 +1,14 @@
const { execSync } = require('child_process');
try {
console.log('=== Testing SSH without host key checking ===');
const result = execSync('ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -T git@git.torchcloud.cn', {
stdio: ['inherit', 'inherit', 'inherit'],
timeout: 30000,
cwd: __dirname
});
console.log('=== SSH connection successful ===');
} catch (error) {
console.error('=== SSH connection failed ===');
console.error('Exit code:', error.status);
}