but i cant connect sql from outside of the vps how to fix it
Normally SQL Server have 1433 for default, please check if any error message indicates this.
Regarding this connect issue, it is suggested to troubleshoot follow by this doc.
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".