No connection could be made because the target machine actively refused it."

0 votes
asked Sep 13, 2011 by sum (120 points)
edited Oct 11, 2011

I am using Rebex SFTP to connect to a remote machine. I get the following error "No connection could be made because the target machine actively refused it."

Could you help me on how to setup a connection to the remote server. Or to setup a user for authentication.

Applies to: Rebex SFTP

1 Answer

0 votes
answered Sep 16, 2011 by Lukas Pokorny (103,050 points)
edited Sep 16, 2011

This exception usually occurs when there is no SSH/SFTP service listening at the remote machine. For example, if the machine only runs an FTP or FTP/SSL server at port 21, you would get this exception when trying to connect to SSH/SFTP's port 22.

...