Difference between revisions of "SSH Client (PowerShell)"

Jump to navigation Jump to search
→‎Renci SSH.NET: Corrected download link, added Unblock error, added Meta
m (→‎Renci SSH.NET: Added links to vBlog)
(→‎Renci SSH.NET: Corrected download link, added Unblock error, added Meta)
Line 15: Line 15:
[http://sshnet.codeplex.com/ Renci SSH.NET] is an ongoing project, its still in beta, but already provides a workable solution with all the core features you're likely to want. Plus as its in active development there's high chance that any probs you might have would be promptly worked on.  It provides both .NET 4.0 and 3.5 libraries, '''you need to use the .NET 3.5 library for PowerShell v2''', see [http://vblog.strutt.org.uk/2011/11/ssh-client-using-powershell/#comment-245 here] for guidance on how to get working with PowerShell v1.
[http://sshnet.codeplex.com/ Renci SSH.NET] is an ongoing project, its still in beta, but already provides a workable solution with all the core features you're likely to want. Plus as its in active development there's high chance that any probs you might have would be promptly worked on.  It provides both .NET 4.0 and 3.5 libraries, '''you need to use the .NET 3.5 library for PowerShell v2''', see [http://vblog.strutt.org.uk/2011/11/ssh-client-using-powershell/#comment-245 here] for guidance on how to get working with PowerShell v1.


To get running you need to download the binary DLL file from http://sshnet.codeplex.com/releases/view/72214, and put it in a place where you can load the assembly (the DLL file) into your PowerShell session, eg  
To get running you need to download the binary DLL file...
 
# Go to http://sshnet.codeplex.com/
# Go to the '''Downloads''' page
# Download the '''SshNet 3.5 Binary''', and put it in a place where you can load the assembly (the DLL file) into your PowerShell session, eg  
<source lang="powershell">
<source lang="powershell">
[void][reflection.assembly]::LoadFrom( (Resolve-Path ".\lib\RenciSSH\Renci.SshNet.dll") )      # DLL file is in \lib\RenciSSH\ folder below the calling script
[void][reflection.assembly]::LoadFrom( (Resolve-Path ".\lib\RenciSSH\Renci.SshNet.dll") )      # DLL file is in \lib\RenciSSH\ folder below the calling script
</source>
</source>


If you don't have .NET 3.5 installed, you'll need to do so from https://www.microsoft.com/download/en/details.aspx?displaylang=en&id=21 (the main installer is just a downloader/bootstrapper, there's a full fat install package link at the bottom of the page).
'''If you don't have .NET 3.5 installed''', you'll need to do so from https://www.microsoft.com/download/en/details.aspx?displaylang=en&id=21 (the main installer is just a downloader/bootstrapper, there's a full fat install package link at the bottom of the page).
 
'''If you get an error that includes <code>Exception from HRESULT: 0x80131515</code>''', you need to ''Unblock'' the downloaded DLL.  Right-click over the file and select '''Properties''', then click on the '''Unblock''' button (if there's no button, its already unblocked).


For some examples of what can you do, see my vBlog pages at http://vblog.strutt.org.uk/tag/renci-sshnet/.  
For some examples of what can you do, see my vBlog pages at http://vblog.strutt.org.uk/tag/renci-sshnet/.  

Navigation menu