By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,526 Members | 2,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,526 IT Pros & Developers. It's quick & easy.

Working with SFTP

P: n/a
As i noticed, there's no built-in facility
for working with SFTP in DotNet. So, i'd
like to learn how to build that up. When i
went googling for knowledge, i only get a
ton of hits on tutorials for specific,
already existing packages.

The problem is that i'd like to learn how
set up such a communication myself. Any
pointers? (Please note that googling for
"c# sftp ssh tutorial" won't give you much
joy, sadly...)

--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.
Oct 17 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
First result for "C# SSH library":
http://www.codeproject.com/KB/IP/sharpssh.aspx
HTH,
Mike
Hmm... I'l try that right away, of course,
and, while being thankful for the help, i
can't stop wondering why you omitted "SFTP"
in your search. Is "SSH" and "SFTP"
equivalent terms?

--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.
"Michael B. Trausch" <mi**@trausch.usskrev i meddelandet
news:20081017015836.3e26bd46@zest...
Oct 17 '08 #2

P: n/a
Is "SSH" and "SFTP" equivalent terms?

Related, certainly: SFTP is FTP over SSH; FTPS is FTP over SSL.

Marc
Oct 17 '08 #3

P: n/a
>>First result for "C# SSH library":
>>http://www.codeproject.com/KB/IP/sharpssh.aspx
HTH,
Mike

Hmm... I'l try that right away, of course,
and, while being thankful for the help, i
can't stop wondering why you omitted "SFTP"
in your search. Is "SSH" and "SFTP"
equivalent terms?

SSH is a transport mechanism, which can do secure
remote shells (a replacement for telnet/rsh, and
probably the most popular application of the SSH
protocol), and it has two more-or-less
"subprotocols," SCP (replaces rcp) and SFTP
(replaces FTP and is designed for more human-based
interaction). SSH can also tunnel arbitrary
information between machines for anything that
isn't inherently secure by way of SSL or some
other form of encryption mechanism.
SCP is more tightly tethered to SSH, while SFTP can
be used over other secure protocols. See the
Wikipedia articles covering the topics for an
overview:
http://en.wikipedia.org/wiki/Secure_Shell
http://en.wikipedia.org/wiki/SSH_file_transfer_protocol
http://en.wikipedia.org/wiki/Secure_copy
Thanks. I'll need to keep looking though. The
example you've found is only a wrapper for an
already existing JSSH-library, while i'm aiming
at getting it done myself.

Nevertheless, thanks a lot.

--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.
"Michael B. Trausch" <mi**@trausch.usskrev i meddelandet
news:20081017023411.5355d77d@zest...
Oct 17 '08 #4

P: n/a
On 10/16/2008 11:21 PM, K Viltersten wrote:
>First result for "C# SSH library":
http://www.codeproject.com/KB/IP/sharpssh.aspx
HTH,
Mike

Hmm... I'l try that right away, of course,
and, while being thankful for the help, i
can't stop wondering why you omitted "SFTP"
in your search. Is "SSH" and "SFTP"
equivalent terms?
SFTP is FTP over SSH...
FTPS is FTP + SSL...

--
Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net
icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

.... Immortality lies not in the things you leave behind, but in the people
your life has touched.
Oct 17 '08 #5

P: n/a
On 10/16/2008 11:33 PM, Marc Gravell wrote:
>Is "SSH" and "SFTP" equivalent terms?

Related, certainly: SFTP is FTP over SSH; FTPS is FTP over SSL.

Marc
What he said.. :)

--
Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net
icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

.... FRA #094: Females and finances don't mix.
Oct 17 '08 #6

P: n/a
On Oct 17, 3:42*pm, "K Viltersten" <t...@viltersten.comwrote:
As i noticed, there's no built-in facility
for working withSFTPin DotNet. So, i'd
like to learn how to build that up. When i
went googling for knowledge, i only get a
ton of hits on tutorials for specific,
already existing packages.
As others have said SFTP is a subsystem of SSH. You establish an SSH
connection, and SFTP consists of a series
of messages encapsulated within SSH messages.

It is a pretty major effort actually implementing it yourself.

It sounds like you may not be interested in commercial packages, but
just in case ... take a look at edtFTPnet/PRO

http://www.enterprisedt.com/products.../overview.html

It supports both SFTP and FTPS - you can easily swap between the two
protocols.

regards

Bruce Blackshaw


Oct 17 '08 #7

P: n/a
>Thanks. I'll need to keep looking though. The
>example you've found is only a wrapper for an
already existing JSSH-library, while i'm aiming
at getting it done myself.

Nevertheless, thanks a lot.

Uhm.
Did you not look at the source code?
It's a *port* of an SSH library from Java to C#.
Of course i looked at the code. Perhaps i was too
hasty in my judgement but what i understood was
that it was merely a wrapper for the Java
version. Maybe i should check that out again...
It isn't a wrapper. From the site:
"After experimenting with an open source Java
SSH library called JSch I decided to try and
port it to C# just for the sake of exercise. The
result is the attached sharpSsh library and this
article which explains how to use it."

An updated version of the SharpSSH library is
available on the author's Web site, as well:
http://www.tamirgal.com/home/dev.aspx?Item=sharpSsh
All right. I guess i got scared and/or confused.
I'll look into that again. Thanks.

By the way, what's up with your mail client? It
seems that all the answers come as attachments,
instead of plainly seeable text. Perhaps it's MY
mail client that sucks...

--
Regards
Konrad Viltersten
--------------------------------
sleep - a substitute for coffee for the poor
ambition - lack of sense to be lazy

Oct 19 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.