Quantcast
Channel: SSH.NET Library
Viewing all 2955 articles
Browse latest View live

New Post: Small File Upload Problem

$
0
0
In last Source code problem is solved!

Thanks!

New Post: ListDirectory - SftpPathNotFoundException

$
0
0
Hi Oleg,
I'm paying more attention to various discussion threads and digging deeper into SSH.NET. I'm planning to have my project on Codeplex published by end of the month. It depends heavily on SSH.NET.

Recently I was a little stymied by the two timeouts for SFTP connection, but think I have that figured out. In my stumbling around I realized that there is probably very rich Exception information which I could use. But for now, I'm rushing to get basic functionality working.
I should say I'm not a very mature OOP/.NET programmer. So it's been helpful for me to use the Object Browser and the .chm help files supplied with SSH.NET. I was looking at the Client.chm and realized what you meant about examples showing up.
While I'm really not ready to contribute much to the project, I wanted you to know I'm still interested in helping at the very least with documentation. But I'd be pretty naïve at first and I'm sure my examples would be very simplistic.
As I read over the various discussions I realize that there are quite a few excellent programmers out there using SSH.NET and they do some awesome research. More than once I've read somebody's response or analysis of an issue and thought 'If only we could crowdsource documentation out of this discussion.'
As soon as Penguin Publish is up and running on Codeplex I'll find a way to give SSH.NET all the credit it deserves. I'll pass the link to you right after I open it up to the public.
thanks again for all the work you have done on SSH.NET.
Bill Delaney

From: [email removed]
To: [email removed]
Date: Sat, 2 Feb 2013 13:31:13 -0800
Subject: Re: ListDirectory - SftpPathNotFoundException [sshnet:403150]

From: olegkap
Hi, Well, when I was using latest version of the sandcastle, I discovered that I can reference the sample code which are located in separated file(s) and more then that, I can have many different examples in one file which are separated by region. So I figured why cant I combine my tests along with documentation. This will grantee that all my samples works. As far as project, I used TFS before too, but I find that subversion in that case is much more convenient to use, may be its a personal preference I guess. So if you want to contribute sample, tests or both then I can add you as a developer in the project and you could check in code directly. The only thing I would ask you is to use subversion since TFS adds some additional information to project and solution files and directories. I am not sure if its possible to find parent-child projects on codeplex but I guess I would be curios to know it myself. If you like, you can contact me on Skype where my nick is olegkap and we can discuss more. Thanks, Oleg
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 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

New Post: ListDirectory - SftpPathNotFoundException

$
0
0
I just added you as a Skype contact.
I'm going to start a new issue on the SSH.NET discussions now because I'm confused as to using private key files.
Bill

From: [email removed]
To: [email removed]
Subject: RE: ListDirectory - SftpPathNotFoundException [sshnet:403150]
Date: Thu, 21 Feb 2013 06:49:57 -0600

From: olegkap
Hi, Well, when I was using latest version of the sandcastle, I discovered that I can reference the sample code which are located in separated file(s) and more then that, I can have many different examples in one file which are separated by region. So I figured why cant I combine my tests along with documentation. This will grantee that all my samples works. As far as project, I used TFS before too, but I find that subversion in that case is much more convenient to use, may be its a personal preference I guess. So if you want to contribute sample, tests or both then I can add you as a developer in the project and you could check in code directly. The only thing I would ask you is to use subversion since TFS adds some additional information to project and solution files and directories. I am not sure if its possible to find parent-child projects on codeplex but I guess I would be curios to know it myself. If you like, you can contact me on Skype where my nick is olegkap and we can discuss more. Thanks, Oleg
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 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

New Post: PrivateKeyAuthenticationMethod

$
0
0
The method takes a privateKeyFile. The PrivateKeyFile is overloaded and I'm looking at two choices. One takes just a Filename, the other takes a Filename and Passphrase.

In my program I'm allowing for a private key that does not use a passphrase. what I'm wondering is whether or not I can get by with just the second method and pass in an empty string for the passphrase when there is none?

In other words, I want to use the single constructor and hope it is smart enough to deal with a valid passphrase or an empty string. Was thinking of trying to pass null, like this:
PrivateKeyFile ppkFile = new PrivateKeyFile(@"C:\Utilities\mercury.ppk",null);
I may try to peruse the source code about this since I'm also unsure of how the PrivateKey method is utilizing the key and passphrase. It's unclear to me whether or not the target host is supposed to be receiving the ppk and passphrase separately and then does the decrypting itself, or if this is the job of the SSH client, decrypting on client machine before using in connection?

The docs don't have an example of this yet as far as I can tell.

I am also wondering if I can save the PPK text in my app and then just load that into a PrivateKeyFile. No overload seems to suggest that. I don't suppose I can substitute the string for System.IO.Stream argument. That would have been a nice fit for one of my use cases.

New Post: PrivateKeyAuthenticationMethod

$
0
0
Hey,

I guess what you can do is to pass second parameter as null, since empty string is a valid passphrase, and then it should work.
Also, please take a look at private key format examples, it should be in documentation and in this forum.

Hope this helps,
Thanks,
Oleg

New Post: How to synchronize Threads?

$
0
0
Looks like a newer version of the library was released, after upgrading this error went away so happy days!

New Post: PrivateKeyAuthenticationMethod

$
0
0
thanks, will look around and post back my experience.


From: [email removed]
To: [email removed]
Date: Thu, 21 Feb 2013 07:11:46 -0800
Subject: Re: PrivateKeyAuthenticationMethod [sshnet:433963]

From: olegkap
Hey,

I guess what you can do is to pass second parameter as null, since empty string is a valid passphrase, and then it should work.
Also, please take a look at private key format examples, it should be in documentation and in this forum.

Hope this helps,
Thanks,
Oleg
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 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

New Post: PrivateKeyAuthenticationMethod

$
0
0
I took no chances and instead just did it in code with optional parameters, like this.
Covered all 3 of my use cases this way. Seems to work.
        private static AuthenticationMethod createAuthObject(
            string _uName,
            bool _usePrivateKey,
            string _uPassword = "",
            string _ppkPassPhrase = "",
            string _ppkPath = ""
            )
        {
            PrivateKeyFile ppkFile;
            if (_usePrivateKey)
            {
                if (_ppkPassPhrase != "")
                {
                    ppkFile = new PrivateKeyFile(_ppkPath, _ppkPassPhrase);
                }
                else
                {
                    ppkFile = new PrivateKeyFile(_ppkPath);
                }
                PrivateKeyAuthenticationMethod myAuth = new PrivateKeyAuthenticationMethod(_uName, ppkFile);
                return myAuth;
            }
            else
            {
                PasswordAuthenticationMethod myAuth = new PasswordAuthenticationMethod(_uName, _uPassword);
                return myAuth;
            }
        }

New Post: How to synchronize Threads?

$
0
0
No problem, glad it worked out.
I did addressed some synchronization recently so I guess it was one of them.

Thanks,
Oleg

New Post: Code Samples in the tests not seen

$
0
0
I just downloaded the source code zip and there is no solution file. Only one project file for the library. I don't see the test code you are referring to. Am I missing something?

New Post: Code Samples in the tests not seen

$
0
0
Hi,

Sorry for confusion,
You will need to download it from "SOURCE CODE" tab.
This is where the whole solution source code is located.

Thanks,
Oleg

Updated Wiki: Home

$
0
0
Introduction
This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. This library is complete rewrite using .NET 4.0, without any third party dependencies and to utilize the parallelism as much as possible to allow best performance I can get.

Features
  • Execution of SSH command using both synchronous and asynchronous methods
  • Return command execution exit status and other information
  • Provide SFTP functionality for both synchronous and asynchronous operations.
  • Provides SCP functionality.
  • Provide status report for upload and download sftp operations to allow accurate progress bar implementation
  • Remote, dynamic and local port forwarding
  • Shell/Terminal implementation.
  • Specify key file pass phrase
  • Use multiple key files to authenticate
  • Supports diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 key exchange methods.
  • Supports 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, blowfish-cbc, cast128-cbc, arcfour and twofish encryptions.
  • Supports hmac-md5, hmac-sha1, hmac-ripemd160, hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 hashing algorithms.
  • Supports publickey, password and keyboard-interactive authentication methods
  • Supports RSA and DSA private key
  • Supports DES-EDE3-CBC, DES-EDE3-CFB, DES-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC algorithms for private key encryption.
  • Supports two-factor or higher authentication
  • Supports .NET 3.5, Silverlight and Windows Phone
  • Supports SOCKS4, SOCKS5 and HTTP Proxy

Code Samples
Sample code can be found by looking at the test cases included in the source code. Make sure you read the code for tests that is not expected to fail.

Future Features
  • Compression support

Samples and Documentation
SshClient.chm


If you have any problems or comments please let me know, if you think its a bug please log it in issue tracker and I will try to address it as quick as possible.

Updated Wiki: Home

$
0
0
Introduction
This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. This library is complete rewrite using .NET 4.0, without any third party dependencies and to utilize the parallelism as much as possible to allow best performance I can get.

Features
  • Execution of SSH command using both synchronous and asynchronous methods
  • Return command execution exit status and other information
  • Provide SFTP functionality for both synchronous and asynchronous operations.
  • Provides SCP functionality.
  • Provide status report for upload and download sftp operations to allow accurate progress bar implementation
  • Remote, dynamic and local port forwarding
  • Shell/Terminal implementation.
  • Specify key file pass phrase
  • Use multiple key files to authenticate
  • Supports diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 key exchange methods.
  • Supports 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, blowfish-cbc, cast128-cbc, arcfour and twofish encryptions.
  • Supports hmac-md5, hmac-sha1, hmac-ripemd160, hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 hashing algorithms.
  • Supports publickey, password and keyboard-interactive authentication methods
  • Supports RSA and DSA private key
  • Supports DES-EDE3-CBC, DES-EDE3-CFB, DES-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC algorithms for private key encryption.
  • Supports two-factor or higher authentication
  • Supports .NET 3.5, Silverlight and Windows Phone
  • Supports SOCKS4, SOCKS5 and HTTP Proxy

Code Samples
Sample code can be found by looking at the test cases included in the source code. Make sure you read the code for tests that is not expected to fail.

Future Features
  • Compression support

Samples and Documentation
SshClient.chm

Cannot resolve image macro, invalid image name or id.
If you have any problems or comments please let me know, if you think its a bug please log it in issue tracker and I will try to address it as quick as possible.

Updated Wiki: Home

$
0
0
Introduction
This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. This library is complete rewrite using .NET 4.0, without any third party dependencies and to utilize the parallelism as much as possible to allow best performance I can get.

Features
  • Execution of SSH command using both synchronous and asynchronous methods
  • Return command execution exit status and other information
  • Provide SFTP functionality for both synchronous and asynchronous operations.
  • Provides SCP functionality.
  • Provide status report for upload and download sftp operations to allow accurate progress bar implementation
  • Remote, dynamic and local port forwarding
  • Shell/Terminal implementation.
  • Specify key file pass phrase
  • Use multiple key files to authenticate
  • Supports diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 key exchange methods.
  • Supports 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, blowfish-cbc, cast128-cbc, arcfour and twofish encryptions.
  • Supports hmac-md5, hmac-sha1, hmac-ripemd160, hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 hashing algorithms.
  • Supports publickey, password and keyboard-interactive authentication methods
  • Supports RSA and DSA private key
  • Supports DES-EDE3-CBC, DES-EDE3-CFB, DES-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC algorithms for private key encryption.
  • Supports two-factor or higher authentication
  • Supports .NET 3.5, Silverlight and Windows Phone
  • Supports SOCKS4, SOCKS5 and HTTP Proxy

Code Samples
Sample code can be found by looking at the test cases included in the source code. Make sure you read the code for tests that is not expected to fail.

Future Features
  • Compression support

Samples and Documentation
SshClient.chm

Cannot resolve image macro, invalid image name or id.
If you have any problems or comments please let me know, if you think its a bug please log it in issue tracker and I will try to address it as quick as possible.

Updated Wiki: Home

$
0
0
Introduction
This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. This library is complete rewrite using .NET 4.0, without any third party dependencies and to utilize the parallelism as much as possible to allow best performance I can get.

Features
  • Execution of SSH command using both synchronous and asynchronous methods
  • Return command execution exit status and other information
  • Provide SFTP functionality for both synchronous and asynchronous operations.
  • Provides SCP functionality.
  • Provide status report for upload and download sftp operations to allow accurate progress bar implementation
  • Remote, dynamic and local port forwarding
  • Shell/Terminal implementation.
  • Specify key file pass phrase
  • Use multiple key files to authenticate
  • Supports diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 key exchange methods.
  • Supports 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, blowfish-cbc, cast128-cbc, arcfour and twofish encryptions.
  • Supports hmac-md5, hmac-sha1, hmac-ripemd160, hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 hashing algorithms.
  • Supports publickey, password and keyboard-interactive authentication methods
  • Supports RSA and DSA private key
  • Supports DES-EDE3-CBC, DES-EDE3-CFB, DES-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC algorithms for private key encryption.
  • Supports two-factor or higher authentication
  • Supports .NET 3.5, Silverlight and Windows Phone
  • Supports SOCKS4, SOCKS5 and HTTP Proxy

Code Samples
Sample code can be found by looking at the test cases included in the source code. Make sure you read the code for tests that is not expected to fail.

Future Features
  • Compression support

Samples and Documentation
SshClient.chm

If you have any problems or comments please let me know, if you think its a bug please log it in issue tracker and I will try to address it as quick as possible.

Updated Wiki: Home

$
0
0
Introduction
This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. This library is complete rewrite using .NET 4.0, without any third party dependencies and to utilize the parallelism as much as possible to allow best performance I can get.

Features
  • Execution of SSH command using both synchronous and asynchronous methods
  • Return command execution exit status and other information
  • Provide SFTP functionality for both synchronous and asynchronous operations.
  • Provides SCP functionality.
  • Provide status report for upload and download sftp operations to allow accurate progress bar implementation
  • Remote, dynamic and local port forwarding
  • Shell/Terminal implementation.
  • Specify key file pass phrase
  • Use multiple key files to authenticate
  • Supports diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 key exchange methods.
  • Supports 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, blowfish-cbc, cast128-cbc, arcfour and twofish encryptions.
  • Supports hmac-md5, hmac-sha1, hmac-ripemd160, hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 hashing algorithms.
  • Supports publickey, password and keyboard-interactive authentication methods
  • Supports RSA and DSA private key
  • Supports DES-EDE3-CBC, DES-EDE3-CFB, DES-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC algorithms for private key encryption.
  • Supports two-factor or higher authentication
  • Supports .NET 3.5, Silverlight and Windows Phone
  • Supports SOCKS4, SOCKS5 and HTTP Proxy

Code Samples
Sample code can be found by looking at the test cases included in the source code. Make sure you read the code for tests that is not expected to fail.

Future Features
  • Compression support

Samples and Documentation
SshClient.chm

NDependLogo_PoweredBy.jpg

If you have any problems or comments please let me know, if you think its a bug please log it in issue tracker and I will try to address it as quick as possible.

Updated Wiki: Home

$
0
0
Introduction
This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. This library is complete rewrite using .NET 4.0, without any third party dependencies and to utilize the parallelism as much as possible to allow best performance I can get.

Features
  • Execution of SSH command using both synchronous and asynchronous methods
  • Return command execution exit status and other information
  • Provide SFTP functionality for both synchronous and asynchronous operations.
  • Provides SCP functionality.
  • Provide status report for upload and download sftp operations to allow accurate progress bar implementation
  • Remote, dynamic and local port forwarding
  • Shell/Terminal implementation.
  • Specify key file pass phrase
  • Use multiple key files to authenticate
  • Supports diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 key exchange methods.
  • Supports 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, blowfish-cbc, cast128-cbc, arcfour and twofish encryptions.
  • Supports hmac-md5, hmac-sha1, hmac-ripemd160, hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 hashing algorithms.
  • Supports publickey, password and keyboard-interactive authentication methods
  • Supports RSA and DSA private key
  • Supports DES-EDE3-CBC, DES-EDE3-CFB, DES-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC algorithms for private key encryption.
  • Supports two-factor or higher authentication
  • Supports .NET 3.5, Silverlight and Windows Phone
  • Supports SOCKS4, SOCKS5 and HTTP Proxy

Code Samples
Sample code can be found by looking at the test cases included in the source code. Make sure you read the code for tests that is not expected to fail.

Future Features
  • Compression support

Samples and Documentation
SshClient.chm

NDependLogo_PoweredBy.jpg

If you have any problems or comments please let me know, if you think its a bug please log it in issue tracker and I will try to address it as quick as possible.

Updated Wiki: Home

$
0
0
Introduction
This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. This library is complete rewrite using .NET 4.0, without any third party dependencies and to utilize the parallelism as much as possible to allow best performance I can get.

Features
  • Execution of SSH command using both synchronous and asynchronous methods
  • Return command execution exit status and other information
  • Provide SFTP functionality for both synchronous and asynchronous operations.
  • Provides SCP functionality.
  • Provide status report for upload and download sftp operations to allow accurate progress bar implementation
  • Remote, dynamic and local port forwarding
  • Shell/Terminal implementation.
  • Specify key file pass phrase
  • Use multiple key files to authenticate
  • Supports diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 key exchange methods.
  • Supports 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, blowfish-cbc, cast128-cbc, arcfour and twofish encryptions.
  • Supports hmac-md5, hmac-sha1, hmac-ripemd160, hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 hashing algorithms.
  • Supports publickey, password and keyboard-interactive authentication methods
  • Supports RSA and DSA private key
  • Supports DES-EDE3-CBC, DES-EDE3-CFB, DES-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC algorithms for private key encryption.
  • Supports two-factor or higher authentication
  • Supports .NET 3.5, Silverlight and Windows Phone
  • Supports SOCKS4, SOCKS5 and HTTP Proxy

Code Samples
Sample code can be found by looking at the test cases included in the source code. Make sure you read the code for tests that is not expected to fail.

Future Features
  • Compression support

Samples and Documentation
SshClient.chm

NDepend

If you have any problems or comments please let me know, if you think its a bug please log it in issue tracker and I will try to address it as quick as possible.

New Post: Use JSON Schema validation with a JSON array

$
0
0
I see how to parse in a single object to JObject and then validate against schema. But when my JSON file will contain an array (small, simple) and I'd like to schema validate each object before deserializing to a strongly typed object (Collection), how can I do that?

I can parse into JArray but then I'm stuck with how to extract each single object and schema validate.

New Post: Use JSON Schema validation with a JSON array

$
0
0
Hi,

Sorry, but I don't see how this questions is relevant to SSH. You might want to check different forums.

Thanks,
Oleg
Viewing all 2955 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>