Hi,

What is the best practice for setting a port in Rebex SFTP? ie. Let's say it is 2700, not 22. Do I just set the hostname as "sftp.mywebsite.com:2700"?

asked 04 Jun '10, 13:37

Trevor's gravatar image

Trevor
16
accept rate: 0%


Try using following code:

Sftp client = new Sftp();
client.Connect("sftp.mywebsite.com",2700);
...
client.Disconnect();

You may find interesting following SFTP tutorial:

http://www.rebex.net/sftp.net/tutorial-sftp.aspx

link

answered 04 Jun '10, 14:01

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18

Asked: 04 Jun '10, 13:37

Seen: 673 times

Last updated: 26 Mar '11, 04:22