An open API service indexing awesome lists of open source software.

https://github.com/darinkes/sshnet.puttykeyfile

SSH.NET Extension to read and use Authentication Keys in PuTTY-Format
https://github.com/darinkes/sshnet.puttykeyfile

csharp dotnet putty ssh sshnet

Last synced: about 1 year ago
JSON representation

SSH.NET Extension to read and use Authentication Keys in PuTTY-Format

Awesome Lists containing this project

README

          

SshNet.PuttyKeyFile
=============
[SSH.NET](https://github.com/sshnet/SSH.NET) Extension to read and use Authentication Keys in PuTTY-Format

[![License](https://img.shields.io/github/license/darinkes/SshNet.PuttyKeyFile)](https://github.com/darinkes/SshNet.PuttyKeyFile/blob/main/LICENSE)
[![NuGet](https://img.shields.io/nuget/v/SshNet.PuttyKeyFile.svg?style=flat)](https://www.nuget.org/packages/SshNet.PuttyKeyFile)
![Nuget](https://img.shields.io/nuget/dt/SshNet.PuttyKeyFile)

![.NET-Ubuntu](https://github.com/darinkes/SshNet.PuttyKeyFile/workflows/.NET-Ubuntu/badge.svg)
![.NET-Windows](https://github.com/darinkes/SshNet.PuttyKeyFile/workflows/.NET-Windows/badge.svg)
![NuGet](https://github.com/darinkes/SshNet.PuttyKeyFile/workflows/NuGet/badge.svg)

## .NET Frameworks

* .NET 4.8
* netstandard 2.0

## Keys
* ssh-ed25519
* ecdsa-sha2-nistp256
* ecdsa-sha2-nistp384
* ecdsa-sha2-nistp521
* ssh-rsa with 2048, 3072, 4096 or 8192 KeyLength

## Key Encryption
* None
* AES256-cbc

## Usage Example

```cs
var key = new PuttyKeyFile("my-key.ppk");

using var client = new SshClient("ssh.foo.com", "root", key);
client.Connect();
Console.WriteLine(client.RunCommand("hostname").Result);
```