Downloads:
1,291
Downloads of v 4.0.1:
46
Last Update:
10 Nov 2024
Package Maintainer(s):
Software Author(s):
- Seth Hendrick
Tags:
sshrunas ssh runas password sshpass windows admin- Software Specific:
- Software Site
- Software Source
- Software License
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
SshRunAs (Install)
- 1
- 2
- 3
4.0.1 | Updated: 10 Nov 2024
- Software Specific:
- Software Site
- Software Source
- Software License
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
1,291
Downloads of v 4.0.1:
46
Maintainer(s):
Software Author(s):
- Seth Hendrick
SshRunAs (Install) 4.0.1
Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Seth Hendrick. The inclusion of Seth Hendrick trademark(s), if any, upon this webpage is solely to identify Seth Hendrick goods or services and not for commercial purposes.
- 1
- 2
- 3
All Checks are Passing
3 Passing Tests
Deployment Method: Individual Install, Upgrade, & Uninstall
To install SshRunAs (Install), run the following command from the command line or from PowerShell:
To upgrade SshRunAs (Install), run the following command from the command line or from PowerShell:
To uninstall SshRunAs (Install), run the following command from the command line or from PowerShell:
Deployment Method:
This applies to both open source and commercial editions of Chocolatey.
1. Enter Your Internal Repository Url
(this should look similar to https://community.chocolatey.org/api/v2/)
2. Setup Your Environment
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download sshrunas --internalize --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade sshrunas -y --source="'INTERNAL REPO URL'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade sshrunas -y --source="'INTERNAL REPO URL'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Install sshrunas
win_chocolatey:
name: sshrunas
version: '4.0.1'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'sshrunas' do
action :install
source 'INTERNAL REPO URL'
version '4.0.1'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller sshrunas
{
Name = "sshrunas"
Version = "4.0.1"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'sshrunas':
ensure => '4.0.1',
provider => 'chocolatey',
source => 'INTERNAL REPO URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
4. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
This package was approved by moderator Windos on 03 Dec 2024.
SshRunAs
SshRunAs allows one to run a command on a remote or local machine as a different user via an SSH connection. This is a front-end to the SSH.Net Library.
The advantage of SshRunAs is unlike OpenSSH, you can pass in a raw password to this program.
Use Cases
The main use case for this is to run a single command on a server via SSH. OpenSSH can do this, but you are not allowed to pass in a password through the command line. This bypasses that requirement, you can indirectly pass a username and password into SshRunAs.
Honestly, if you need to use this, you should reconsider all other options, such as using SSH Keys. This is really a last resort when things such as weird corporate IT policies get in the way.
When not to use
This should not be used when:
- You can use SSH Keys (Just use OpenSSH in that case).
- Someone can view your process's environment variables (Passwords are stored in plaintext there). Typically a user needs root or admin to do this anyways.
- You are on Linux. Linux has a better tool called SshPass, use that instead.
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
md5: F8BAB5C041F61C0825C849C53540C5FF | sha1: C1CC77821281AC10527B64D59F95AE3F9802C4D4 | sha256: 9F4A5A6BD626F4CEEFB1E0F53BE7C85B905A7444B5AC4DC70EECAA3026DD1D31 | sha512: 9B3306BEEE026641ADE989EDCF6A0CC48E225305F9AA686A49D7C706E57A17FC1CB7EB12AE8D0DF122B6BE903133E71BF25017745DAB4299614CA1460B56E2B5
The MSI bundled with this package is the same MSI that is posted to the file server at https://files.shendrick.net/projects/sshrunas/releases/.
The directory that contains the release on the file server contains a .sha256 file. For example, for version 2.0.0, the MSI
will be located at https://files.shendrick.net/projects/sshrunas/releases/2.0.0/SshRunAs.msi, while the .sha256 is a text file located at
https://files.shendrick.net/projects/sshrunas/releases/2.0.0/SshRunAs.msi.sha256
The value in the sha256 file will match the value in ChocolateyInstall.ps1.
One can also download the .msi from the file server, get the sha256 sum of it. It will match the value in ChocolateyInstall.ps1.
Log in or click on link to see number of positives.
- sshrunas.4.0.1.nupkg (3b9e3b0ede0c) - ## / 64
- sshrunasInstall.msi (9f4a5a6bd626) - ## / 61
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
SshRunAs (Install) 4.0.1 | 46 | Sunday, November 10, 2024 | Approved | |
SshRunAs (Install) 3.0.0 | 705 | Saturday, December 4, 2021 | Approved | |
SshRunAs (Install) 2.0.0 | 188 | Tuesday, June 1, 2021 | Approved | |
SshRunAs (Install) 1.3.0 | 318 | Sunday, May 17, 2020 | Approved |
Copyright © Seth Hendrick 2019-2024
This package has no dependencies.
Ground Rules:
- This discussion is only about SshRunAs (Install) and the SshRunAs (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or SshRunAs (Install), or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.