I can connect to the server with ssh but not with sftp.

Please confirm if you are not invoking other shell in ".cshrc" file.
The sftp-server process need to start from csh. If you are invoking other shell, it can not connect, then it will be timeout. Please delete the command line which invoke other shell in ".cshrc", and try again.

 
If it will not be solved, please contact us from the inquiry form below.

Form for inquiries