Is there a way to specify an alternate port for sftp

Nov 30, 2011 at 3:45 PM
Edited Nov 30, 2011 at 3:50 PM

I have code working to connect to several different servers.    This library is working well.

 

Now I need to connect to a new server.   It is configured to use port 10035

 

Does anyone have any sample code showing how to do this?

 

Thanks, 

Nick

Coordinator
Nov 30, 2011 at 3:53 PM

ConnectionInfo class has ability to specify port, so any ConnectionInfo based class have this ability. Once i am bav in the office could give you more specific rxample if needed.

Thanks,
Oleg

On Nov 30, 2011 11:45 AM, "harrn" <notifications@codeplex.com> wrote:

From: harrn

I have code working to connect to several different servers. This library is working well.

Now I need to connect to a new server. It is configured to use port 10021.

Does anyone have any sample code showing how to do this?

Thanks,

Nick

Read the full discussion online.

To add a post to this discussion, reply to this email (sshnet@discussions.codeplex.com)

To start a new discussion for this project, email sshnet@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Nov 30, 2011 at 4:01 PM

Never mind.    I found the answer.   I missed one of the overloads for the SftpClient constructor.

 

Very nice implementation.

Thank you to all who have worked so hard on it.