Exception: connection attempt failed.... - WeOnlyDo Discussion board

Exception: connection attempt failed.... (General questions)

by Kamal, Wednesday, May 18, 2005, 13:35 (7128 days ago)

Hi,

I'm trying to send a file to an SFTP server and I keep getting the following error:

==================================================================
MethodNotification:start
MethodNotification:ExtendedStates.Connecting
MethodNotification:EXCEPTIONA connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
DestroySocket
==================================================================

Is this something to do with the setting of the ssh server or the sender firewall!?

please help, it's kinda urgent...

thank you so much...

Re: Exception: connection attempt failed....

by wodSupport, Wednesday, May 18, 2005, 14:11 (7128 days ago) @ Kamal

Kamal,

it seems like server doesn't reply at all when you try to connect to it. It doesn't refuse the connection - it's just silent, like it doesn't exist on the network. Possible?

Re: Exception: connection attempt failed....

by Kamal, Wednesday, May 18, 2005, 14:24 (7128 days ago) @ wodSupport

of course it does not exist in the network, it's a remote ssh server. when ftp, it works fine but with sftp it does not.

what do you mean by the server is silent??

what do i need to do on the ssh server in order to allow access for sftp transmission?

or is that something to do with the our network firewall??

thank you.. I really appreciate the quick response...

Re: Exception: connection attempt failed....

by wodSupport, Wednesday, May 18, 2005, 16:14 (7128 days ago) @ Kamal

Kamal,

can you go to command prompt, and type:

telnet your.host.com 22

what happens? Do you get any response?

As you can see from the command, you are trying to connect to same port as SFTP protocol, so we'll see what happens.

Re: Exception: connection attempt failed....

by Kamal, Wednesday, May 18, 2005, 16:26 (7128 days ago) @ wodSupport

I've tried telnet and nslookup and the result is as follows:

====================================================================
C:>telnet hostIPAddress 22
Connecting To hostIPAddress ...Could not open a connection to host on port 22 : Connect failed

C:>nslookup hostIPAddress
Server: My....com
Address: MyIPAddress
DNS request timed out.
timeout was 2 seconds.
*** Request to My.....com timed-out

C:>nslookup hostIPAddress
Server: My....com
Address: MyIPAddress

*** My....com can't find hostIPAddress : Non-existent domain

C:>
=================================================================

Any idea where it goin wrong??

Thank you..

Re: Exception: connection attempt failed....

by wodSupport, Wednesday, May 18, 2005, 16:29 (7128 days ago) @ Kamal

As you have seen, you have invalid hostname or IP address. I am quite sure FTP doesn't work on it either! Maybe you misspelled it?

If NSLOOKUP fails, how can FTP work?

In any case, this is TCP/IP problem, not SFTP problem. When we resolve TCP/IP related problem, I suppose SFTP will work too.