Skip to content

Commit 2d7ffd8

Browse files
committed
fix(deploy): update SSH connection test to disable password authentication
1 parent a792301 commit 2d7ffd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/deploy/deploy-ssh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo -e "${BLUE}🚀 Starting SSH Deployment to Hostinger...${NC}"
2828
# Function to test SSH connection
2929
test_ssh_connection() {
3030
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
31+
if ssh -p "$SSH_PORT" -o ConnectTimeout=10 -o PasswordAuthentication=no "$SSH_CONNECTION" "echo 'SSH connection successful'" 2>/dev/null; then
3232
echo -e "${GREEN}✅ SSH connection successful${NC}"
3333
return 0
3434
else

0 commit comments

Comments
 (0)