473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Working with SFTP

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
7 12260
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
Is "SSH" and "SFTP" equivalent terms?

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

Marc
Oct 17 '08 #3
>>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
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
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
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
>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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gus M. Creces | last post by:
Hi... I'm looking for some information, technical, white paper - whatever - on how SFTP works. I need to add SFTP capabilities into an app's present FTP capabilities. I'm not really looking for a...
4
by: Luke Vogel | last post by:
I've looked everywhere ... Is there anywhere that has the source code for a SFTP client that I can modify for my needs? Please? -- Regards Luke. -----
0
by: Bernhard Günther | last post by:
Hello friends of php, PhP-Version is 4 on a FreeBSD-System using apache. Got a problem using ssh2.sftp. Installed correctly (libssh2, ssh2.so-module). Connecting with publickey works,...
7
by: RadhakrishnanR | last post by:
How i can implement SFTP in VB. Scenario is I want to take file from SFTP server, then after some process with the file , file will be moved to database.. Our requirement is very clear that how...
12
by: jcor | last post by:
Hi, I'm using Ubuntu 7.04. I'm writing a sript that sends files via ftp for several destinations. So far I used Net::FTP and it worked fine. My problem is that I need to send files via SFTP...
0
by: arkascha | last post by:
Helloooo everyone, I have a problem with a small solution I made some three or four years ago. Worked flawless until deployed onto newer machines now and guess what, I cannot fix it. Maybe some...
4
by: sa6113 | last post by:
I want to use sftp from paramiko to copy a file from a windows machine to a Linux in the network, I use this code : host = "LinuxComputerName" (or its Ip) port = 22 transport =...
2
by: sivashanmugam | last post by:
Hi Friends, I tried to send some zips from local to remote location but the transfer is not sucess i can transfer the zips partially can some one assist me how to make it as sucess i had...
1
by: ndedhia1 | last post by:
I was hoping you could help me out with ftp vs sftp. Below is a method that I have that I call to ftp files from one unix box to another in house, but soon, we will have to ftp from here to NY so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.