02-05-2021



Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the. Linux version 3.14.27-100.fc19.x8664 (mockbuild@bkernel02.phx2.fedoraproject.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-7) (GCC) ) #1 SMP. Uou simply ssh to yourself 127.0.0.1 on verbose mode, which will display debugging messages of the progress. Yes, through this process you can look at the top of the communication and you can get the SSH version that you are currently running. But if you read the ssh man page, you will find the -V option on ssh more useful.

Provide SSH and SCP functionality for executing commands against remote hosts.

Minimum PowerShell version

3.0

There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Get Ssh Version
Install-Module -Name Posh-SSH -RequiredVersion 2.3.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Get Ssh Version Download

Carlos Perez

Copyright

(c) 2019 Carlos Perez. All rights reserved.

Package Details

Owners

Cmdlets

Functions

PSEditions

Dependencies

This module has no dependencies.

Ssh

FileList

  • Posh-SSH.nuspec
  • PoshSSH.dll
  • PoshSSH.pdb
  • AssemblyIonic.Zlib.dll
  • AssemblyNewtonsoft.Json.dll
  • AssemblyRenci.SshNetPS.dll

Version History

VersionDownloadsLast updated
3.0.0-beta1 1,055 3/4/2021
3.0.0-alpha 449 2/1/2021
2.3.0 (current version) 1,052,002 10/4/2020
2.3.0-Beta1 1,913 6/5/2020
2.2 2,275,416 5/12/2019
2.1 224,246 1/23/2019
2.0.2 700,517 10/13/2017
2.0.1 48,779 8/14/2017
2.0 1,648 8/11/2017
1.7.7 103,764 12/23/2016
1.7.6 43,525 7/29/2016
1.7.5 7,118 7/9/2016
1.7.4 28 7/9/2016
1.7.3 53,529 11/4/2015
1.7.2 687 3/26/2015
1.7 56 3/18/2015
1.6 347 8/17/2014
Show more

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

Plugin info

This Plugin was derived from the very cool SCP Plugin.You can use the SSH Plugin to run shell commands on a remote machine via ssh.

Usage

First go to the global configuration page and add a SSH site.

For your job select a configured site and enter the shell commands that should be executed before and after the build.

Log will look like this.

TODO

  • i18n
  • we also need a post deploy script (ask some of the core team how to do that)
  • investigate stop behavior of Hudson jobs using the ssh Plugin
  • use same sites as scp plugin (plugin dependencies???)
  • ...


Changelog

Version 2.6.1 (April 13 2018)
  • [JENKINS-19973] Option to hide ssh command in log

Version 2.6 (April 7 2018)

Check Sshd Version

Version
  • [JENKINS-46172] Handle NPE when not all fields are specified & save only properly configured sites

  • [JENKINS-10128] Set build to UNSTABLE when no SSH site is configured instead of NPE
  • Add Jenkinsfile to plugin
  • bump ssh-credentials dependency to 1.12
  • Add ajax validation to essential ssh host fields

INFO: the 'Add Credentials' button for SSH Site don't work in recent Jenkins 2.x versions - this will be fixed in upcoming 3.0 version.
(major version since plugin will have to migrate it's configuration to new format)

Openssh For Windows 10

Version 2.5 (July 8 2017)
  • [JENKINS-21436] Integrate with the SSH Credentials Plugin; previous credentials are migrated

  • [JENKINS-23231] Add timeout parameter

  • [JENKINS-24913] Don't show sensitive build variables in console log

  • [JENKINS-12191] Restore resolving hostname from environment variables

  • [JENKINS-12191] Support build variables (substitution variables) during command execution (env variables are exported before the script)

  • [JENKINS-24402] Updated to latest version of JSch (0.1.54) to support modern algorithms

  • Pull JSch dependency via Jenkins hosted jsch-plugin to use recommended way of getting common dependencies in Jenkins

  • Set Jenkins 1.609.3 as the oldest supported version

  • Show warning for missing parameters during ajax form validation

  • Fix security issue

Due to added integration with SSH Credentials Plugin, this version might NOT be fully compatibile with previous version. Sorry!

Please backup your org.jvnet.hudson.plugins.SSHBuildWrapper.xml before upgrading to version 2.5.

Get Ssh Version 9

Version 2.4 (Jan 08 2014)
  • ability to use variables when defining SSH host
  • miscellaneous fixes
  • added keep alive interval
Version 2.3 (Sep 24 2012)
  • fixed JENKINS-15265
Version 2.2 (Sep 03 2012)
  • fixed JENKINS-15005 and JENKINS-14420
Version 2.1 (Aug 14 2012)
  • configurable pty mode
Version 2.0 (Jun 26, 2012)
  • support multiple sites on the same machine
Get Ssh Version
Version 1.6 (Jun 24, 2012)
  • support parameterized builds
Version 1.3 (Jun 25, 2011)
  • Run script on build step.
  • Fixed JENKINS-9240
Version 1.2 (Feb 17, 2011)

Check Openssh Version Linux

  • Fix to avoid executing empty script.
Version 1.1 (Jun 2, 2010)
  • Removed isEmpty() for 1.5 comp; better input areas
Version 1.0 (Feb 24, 2010)

Get Ssh Protocol Version

  • Initial release.