DotnetPublishSsh 0.1.0

Publish .Net Core app to remote server via SSH

Install-Package DotnetPublishSsh -Version 0.1.0
dotnet add package DotnetPublishSsh --version 0.1.0
<PackageReference Include="DotnetPublishSsh" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotnetPublishSsh --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

dotnet-publish-ssh

Simple publish your .Net Core application to linux server via SSH.

Usage

  • Add this to csproj file:
  <ItemGroup>
    <DotNetCliToolReference Include="DotnetPublishSsh" Version="0.1.0" />
  </ItemGroup>
  • Run dotnet restore
  • Run dotnet publish-ssh with options:
Usage: dotnet publish-ssh [arguments] [options]
Arguments and options are the same as for `dotnet publish`
SSH specific options:
  --ssh-host *              Host address
  --ssh-port                Host port
  --ssh-user *              User name
  --ssh-password            Password
  --ssh-keyfile             Private OpenSSH key file
  --ssh-path *              Publish path on remote server
(*) required

Example

dotnet publish-ssh --ssh-host 10.0.0.1 --ssh-port 22 --ssh-user root --ssh-password secret --ssh-path /var/www/site

TODO

  • [x] Just works
  • [x] Password authentication
  • [x] Private key file authentication
  • [ ] Don't upload unmodified files (checksum)
  • [ ] Config file
  • [ ] Pre/post publish hooks on remote server

dotnet-publish-ssh

Simple publish your .Net Core application to linux server via SSH.

Usage

  • Add this to csproj file:
  <ItemGroup>
    <DotNetCliToolReference Include="DotnetPublishSsh" Version="0.1.0" />
  </ItemGroup>
  • Run dotnet restore
  • Run dotnet publish-ssh with options:
Usage: dotnet publish-ssh [arguments] [options]
Arguments and options are the same as for `dotnet publish`
SSH specific options:
  --ssh-host *              Host address
  --ssh-port                Host port
  --ssh-user *              User name
  --ssh-password            Password
  --ssh-keyfile             Private OpenSSH key file
  --ssh-path *              Publish path on remote server
(*) required

Example

dotnet publish-ssh --ssh-host 10.0.0.1 --ssh-port 22 --ssh-user root --ssh-password secret --ssh-path /var/www/site

TODO

  • [x] Just works
  • [x] Password authentication
  • [x] Private key file authentication
  • [ ] Don't upload unmodified files (checksum)
  • [ ] Config file
  • [ ] Pre/post publish hooks on remote server

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.0 2,527 2/27/2018
0.0.4 899 10/9/2016
0.0.3 365 10/8/2016
0.0.2 330 10/8/2016
0.0.1 358 10/8/2016