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

Commented Unassigned: Installation Dependencies/Instructions [2706]

$
0
0
I have downloaded these three modules and placed them in the "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\SSH-Sessions" directory.

https://sshnet.codeplex.com/downloads/get/944154
http://sshnet.codeplex.com/downloads/get/944155
"http://www.powershelladmin.com/w/images/a/a5/SSH-SessionsPSv3.zip" From the http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library site.

I then run the below in powershell 4.0 (I do have .NET 4.0 installed).

PS C:\WINDOWS\system32> Import-Module SSH-Sessions
Import-Module : Could not load file or assembly
'file:///C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\SSH-Sessions\Renci.SshNet.dll' or one of its dependencies.
Operation is not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:1
+ Import-Module SSH-Sessions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

The Renci.SshNet.dll file does exist and i have attempted to manually register it, but that does not work. I am also the administrator of my system. What other dependencies am I missing to get this module imported?
Comments: ** Comment from web user: karun100 **

Hi

I am facing same issue when i do import ssh module in windows 2012 server..can some one please help:-

PS C:\Users\Administrator> Import-Module SSH-Sessions
Import-Module : Could not load file or assembly
'file:///C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SSH-Sessions\Renci.SshNet35.dll' or one of its
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:2
Import-Module SSH-Sessions
~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
i have tried :--

$AssemblyFile = 'path of my Renci.SshNet35.dll ' and above link says to unblock the zip file in property ..sorry not able to understand what does that mean..can you please say in detail..

I am new to power-shell does version of RencisshNet different for different for different version of power-shell..
I am using windows 2012 server.

Please help resolve this issue..

Thanks & Regards
Karun


Commented Issue: Can't install SSH.NET into Xamarin Android Project [2806]

$
0
0
When using NuGet Package Manager (latest version) to install SSH.NET into a Xamarin Android project in Visual Studio 2015 Community Edition, I get the following error - is there anything I can do about this or is it just not going to fly?

Thanks in anticipation - Tim

Attempting to gather dependency information for package 'SSH.NET.2013.4.7' with respect to project 'TaskyAndroid', targeting 'MonoAndroid,Version=v6.0'
Attempting to resolve dependencies for package 'SSH.NET.2013.4.7' with DependencyBehavior 'Lowest'
Resolving actions to install package 'SSH.NET.2013.4.7'
Resolved actions to install package 'SSH.NET.2013.4.7'
Install failed. Rolling back...
Package 'SSH.NET.2013.4.7' does not exist in project 'TaskyAndroid'
Package 'SSH.NET.2013.4.7' does not exist in folder 'C:\Users\Tim\Downloads\Tasky\packages'
Could not install package 'SSH.NET 2013.4.7'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
========== Finished ==========
Comments: ** Comment from web user: TimHaydnJones **

Much appreciated drieseng - you OpenSource guys are just incredible.

Commented Issue: Can't install SSH.NET into Xamarin Android Project [2806]

$
0
0
When using NuGet Package Manager (latest version) to install SSH.NET into a Xamarin Android project in Visual Studio 2015 Community Edition, I get the following error - is there anything I can do about this or is it just not going to fly?

Thanks in anticipation - Tim

Attempting to gather dependency information for package 'SSH.NET.2013.4.7' with respect to project 'TaskyAndroid', targeting 'MonoAndroid,Version=v6.0'
Attempting to resolve dependencies for package 'SSH.NET.2013.4.7' with DependencyBehavior 'Lowest'
Resolving actions to install package 'SSH.NET.2013.4.7'
Resolved actions to install package 'SSH.NET.2013.4.7'
Install failed. Rolling back...
Package 'SSH.NET.2013.4.7' does not exist in project 'TaskyAndroid'
Package 'SSH.NET.2013.4.7' does not exist in folder 'C:\Users\Tim\Downloads\Tasky\packages'
Could not install package 'SSH.NET 2013.4.7'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
========== Finished ==========
Comments: ** Comment from web user: drieseng **

I may have been told that support for __.NETStandard1.3__ in __Xamarin__ is being worked on :-)
If that happens to be true, then that would resolve this issue.

Released: 2016.0.0 (Aug 02, 2016)

Created Release: 2016.0.0 (aug 02, 2016)

Created Unassigned: Cisco 3600 Error Sending enable password [2808]

$
0
0
Bottom Line: On a 3600 Cisco switch, after sending the enable password the LostConnection event is raised, with this trace:
___at Renci.SshNet.Common.SshDataStream.ReadBytes(Int32 length)
at Renci.SshNet.Common.SshDataStream.ReadBinary()
at Renci.SshNet.Common.SshData.ReadBinary()
at Renci.SshNet.Messages.Transport.IgnoreMessage.LoadData()
at Renci.SshNet.Common.SshData.Load(Byte[] value, Int32 offset)
at Renci.SshNet.Session.LoadMessage(Byte[] data, Int32 offset)
at Renci.SshNet.Session.ReceiveMessage()
at Renci.SshNet.Session.MessageListener()___

Some more details. The same code works on Cisco 1900, 800, and 2960. I can login with putty.

Reviewed: 2016.0.0-beta3 (ago 12, 2016)

$
0
0
Rated 5 Stars (out of 5) - ok excelent

Updated Wiki: Home

$
0
0

We've moved!

SSH.NET is now available here:
https://github.com/sshnet/SSH.NET

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 a complete rewrite using .NET 4.0, without any third party dependencies, using parallelism to achieve the best performance possible.

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 SOCKS4, SOCKS5 and HTTP Proxy

Framework Support
  • .NET Framework 3.5
  • .NET Framework 4.0
  • Silverlight 4
  • Silverlight 5
  • Windows Phone 7.1
  • Windows Phone 8.0

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.

Updated Wiki: Documentation

$
0
0

We've moved!

SSH.NET is now available here:
https://github.com/sshnet/SSH.NET

Notice: This wiki is a work in progress and may contain dead-links or inaccurate information. Do not file any issues until this notice is removed.

The following is a list of links that might be useful.

Problems using the CHM file on Windows 7 or Windows 8

Windows 7
The CHM file, at least in windows 7, when downloaded, will show broken links and empty pages unless you unblock the file.
  1. Right click on: SshClient.chm # two
  2. Near the bottom of the dialog on the right, you will see an "Unblock" button. Click it!
Windows 8
Start PowerShell and use this command: Unblock-File .\SshNet.chm
Note, you can move to directories like you can in Command Prompt.
Source (superuser.com)

Released: 2016.0.0 (Aug 02, 2016)

Updated Release: 2016.0.0 (aug 02, 2016)

New Post: how to pass special chars in passwords ?

$
0
0
One user has special chars in its Cisco's enable password (ï alias \357)
Freeradius accepts it in the escaped style \357 but Ssh.net sends it directly and then is rejected

It works with Putty or radtest who use the escaped one
Sending Access-Request of id 133 to 127.0.1.1 port 1812
    User-Name = "uuuuuuu"
    User-Password = "pppp\357ppppp"
Instead Ssh.net sends
Packet-Type = Access-Request
User-Name = "uuuuuuu"
Reply-Message = "Password: "
User-Password = "ppppïppppp"
I don't know if pb comes from freeradius or ssh.net
Is it possible to replace these special chars by the escaped one (\<octal value>) in the connectioninfo params ?

Thanks for help

New Post: SshOperationTimeoutException and SshConnectionException continue to appear randomly.

$
0
0
Hello, I am currently working on a project that must download, edit and then upload a file from an sftp server. To achieve this, I am using this library. As well as this, the file on the sftp is renamed before it is edited and uploaded, then renamed back to its original name once completed.

My issue is 50% of the time, an exception will appear. This exception can be either a SshOperationTimeoutException (timeout set to 10 seconds) or a SshConnectionException, but will always occur on the 'SftpClient.Connect()' function. The other 50% of the time, the program works as expected. What could be causing these issues and what can I do to minimize or solve them.

New Post: Files archiving to different location

$
0
0
Hello,

If i want to move the files which are older than 5 days to different SFTP location,

How i can achive using renci.ssh.net?

Thanks in advance.

Regards,
Nagdeep. K.N.

Reviewed: 2016.0.0 (sep. 11, 2016)

$
0
0
Rated 4 Stars (out of 5) - ahun no se, apenas lo estoy descargando.-

Reviewed: 2016.0.0 (Sep 12, 2016)

$
0
0
Rated 4 Stars (out of 5) - Still checking

Commented Unassigned: stty: standard input: Invalid argument [2803]

$
0
0
Hi SSH.NET team,

Thanks for providing such a good library. I'm having an issue (shown as title) when trying to use ssh.RunCommand() function to execute a command on a remote linux. Has anyone else come across this problem and fixed it? Thanks! ! !
Comments: ** Comment from web user: Voronaxe **

I don have identical issue trying to pass remote command on a call manager CLI.. works well on Cisco Routers & switches...

Any update will be welcomed

M

Commented Unassigned: stty: standard input: Invalid argument [2803]

$
0
0
Hi SSH.NET team,

Thanks for providing such a good library. I'm having an issue (shown as title) when trying to use ssh.RunCommand() function to execute a command on a remote linux. Has anyone else come across this problem and fixed it? Thanks! ! !
Comments: ** Comment from web user: drieseng **

We've moved to [GitHub](https://github.com/sshnet/SSH.NET/).
Please submit an issue there, and provide as much information as possible.

Thanks!
Gert


Closed Unassigned: Cisco 3600 Error Sending enable password [2808]

$
0
0
Bottom Line: On a 3600 Cisco switch, after sending the enable password the LostConnection event is raised, with this trace:
___at Renci.SshNet.Common.SshDataStream.ReadBytes(Int32 length)
at Renci.SshNet.Common.SshDataStream.ReadBinary()
at Renci.SshNet.Common.SshData.ReadBinary()
at Renci.SshNet.Messages.Transport.IgnoreMessage.LoadData()
at Renci.SshNet.Common.SshData.Load(Byte[] value, Int32 offset)
at Renci.SshNet.Session.LoadMessage(Byte[] data, Int32 offset)
at Renci.SshNet.Session.ReceiveMessage()
at Renci.SshNet.Session.MessageListener()___

Some more details. The same code works on Cisco 1900, 800, and 2960. I can login with putty.
Comments: Fixed as part of https://github.com/sshnet/SSH.NET/issues/66

Closed Issue: Can't install SSH.NET into Xamarin Android Project [2806]

$
0
0
When using NuGet Package Manager (latest version) to install SSH.NET into a Xamarin Android project in Visual Studio 2015 Community Edition, I get the following error - is there anything I can do about this or is it just not going to fly?

Thanks in anticipation - Tim

Attempting to gather dependency information for package 'SSH.NET.2013.4.7' with respect to project 'TaskyAndroid', targeting 'MonoAndroid,Version=v6.0'
Attempting to resolve dependencies for package 'SSH.NET.2013.4.7' with DependencyBehavior 'Lowest'
Resolving actions to install package 'SSH.NET.2013.4.7'
Resolved actions to install package 'SSH.NET.2013.4.7'
Install failed. Rolling back...
Package 'SSH.NET.2013.4.7' does not exist in project 'TaskyAndroid'
Package 'SSH.NET.2013.4.7' does not exist in folder 'C:\Users\Tim\Downloads\Tasky\packages'
Could not install package 'SSH.NET 2013.4.7'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
========== Finished ==========
Comments: Fixed in newer versions of Xamarin Studio.
Viewing all 2955 articles
Browse latest View live


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