We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a792301 commit 2d7ffd8Copy full SHA for 2d7ffd8
scripts/deploy/deploy-ssh.sh
@@ -28,7 +28,7 @@ echo -e "${BLUE}🚀 Starting SSH Deployment to Hostinger...${NC}"
28
# Function to test SSH connection
29
test_ssh_connection() {
30
echo -e "${YELLOW}🔗 Testing SSH connection...${NC}"
31
- if ssh -p "$SSH_PORT" -o ConnectTimeout=10 -o BatchMode=yes "$SSH_CONNECTION" "echo 'SSH connection successful'" 2>/dev/null; then
+ if ssh -p "$SSH_PORT" -o ConnectTimeout=10 -o PasswordAuthentication=no "$SSH_CONNECTION" "echo 'SSH connection successful'" 2>/dev/null; then
32
echo -e "${GREEN}✅ SSH connection successful${NC}"
33
return 0
34
else
0 commit comments