Pages Navigation Menu

Lokale meninger, globale ytringer

Create Array of unique valu...

This code snippet show you how to create an array of un…

Get attributes of element d...

This example show you how to get the attributes of elem…

Build Object from XML file ...

This example will show you how to parse an XML file usi…

SSH/SFTP client in VB.net with sources

Skrevet av den 10.06.2009 | 15 kommentarer | 7 363 visninger

I was browsing the web and found a open-source library for using SSH/SFTP connections in .NET. Thus I put together this example that contains methods to upload, download and list directories. I’ve made the class easy to use so that you can with ease implement progressbar and such on the transfers. Below you can see a screenshot from the example program.

sshvbnet1

Download example and sources:

References:

Anbefalte lenker
Aktivitet
  • Cutha

    I like the way you code, very clean. Thanks for posting the example.

    I came accross SharpSSH while looking for something easy I could use to read/write to a SSH server. I have been struggling the source and examples that come with SharpSSH and when I found your example I was excited because I thought it would cover creating a SSH Shell.

    Any chance you could make a simple example of how to use SharpSsh.SshShell? I can kind of follow the C# example, but I would love one that is in VB and that reads the stream to a textbox (the other examples are all console).

  • Cutha

    I like the way you code, very clean. Thanks for posting the example.

    I came accross SharpSSH while looking for something easy I could use to read/write to a SSH server. I have been struggling the source and examples that come with SharpSSH and when I found your example I was excited because I thought it would cover creating a SSH Shell.

    Any chance you could make a simple example of how to use SharpSsh.SshShell? I can kind of follow the C# example, but I would love one that is in VB and that reads the stream to a textbox (the other examples are all console).

  • Mike

    I would love to see an example of how to use SharpSsh.SshShell in a textbox as well. I have a need to embed a light SSH shell client into C# application.

  • Mike

    I would love to see an example of how to use SharpSsh.SshShell in a textbox as well. I have a need to embed a light SSH shell client into C# application.

  • http://www.postparrot.com Greg Metsker

    Thanks for this post, answers a bunch of questions I was having.

  • http://www.postparrot.com Greg Metsker

    Thanks for this post, answers a bunch of questions I was having.

  • http://www.bfds.biz Patrick Hawkins

    Thank you this was just what I was looking for. Next step for me is to add SSH shell console to another tab in the form so I can execute remote commands on the host.

  • http://www.bfds.biz Patrick Hawkins

    Thank you this was just what I was looking for. Next step for me is to add SSH shell console to another tab in the form so I can execute remote commands on the host.

  • Somebody

    Tanks, I was looking for a simple ready-made example.

  • Rikky0666

    how can i upload a file withou the pass?? 

  • http://www.brudvik.org/ Kjell Arne Brudvik

    Uhm.. you kind of need to know the password of the user account you wish to use..

  • Kruno

    Great thing, that you have programmed.
    Is there any oppurtunity to switch to ftp – so I could have one thing for both – thx
    Kruno

  • http://www.brudvik.org/ Kjell Arne Brudvik

    Well, you can use the FtpWebRequest class that comes with .NET in order to have FTP client as well. And then define what you want to use by prefixing the hostname like sftp:// and ftp://.

  • Kruno

    Kjell,
    thank you – saw that before – this is exactly the approach that I am making at the moment..
    Switching betwenn FtpWebRequest and what you’ve made.
    Best Regards..
    Kruno

  • Martijn Hendrikx

    working very good, but i cant delete the file, after i downloaded the file