I verified that my server uses port 22 for sftp.
I tried to connect using filezilla, which works fine
Here is the details of the problem:
It gives the following error
The server rejected SFTP connection, but it listens for FTP connections. Did you want to use FTP protocol instead of SFTP? Prefer using encryption.
1. When trying to connect initially. It might give the error 20 times in a line and then allow to connect or it might connect immediately without any error.
2. When trying to transfer files. After clicking the OK button for 20-30 times files get transfered somehow