Git - ssh-keygen - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the problem and the corrective action here>

Property Details

ID24048
StatusAlpha - Code that was just developed
TitleGit - ssh-keygen - Windows
DomainBESC
SourceInternal
Source Release Date4/18/2017 12:00:00 AM
Added by on 4/18/2017 5:52:11 PM
Last Modified by on 4/18/2017 5:52:11 PM
Counters 975 Views / 10 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

isWindows (Relevance 1172)
Used in 1066 fixlets and 522 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 6 fixlets   * Results in a true/false
Show indented relevance
1 = number of logged on users
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists keys whose(value "DisplayName" of it as string contains "Git") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists files "ssh-keygen.exe" of folders "bin" of folders "usr" of (folders it) of (it as string) of values "InstallLocation" of keys whose(value "DisplayName" of it as string contains "Git") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists files "id_rsa.pub" of folders ".ssh" of (folders it) of unique values of home directories of users of (current users;logged on users)

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// TODO
parameter "KeyGenLocation" = "{ unique value of pathnames of files "ssh-keygen.exe" of folders "bin" of folders "usr" of (folders it) of (it as string) of values "InstallLocation" of keys whose(value "DisplayName" of it as string contains "Git") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries) }"
parameter "FileSaveLocation" = "{ unique value of (it & "\id_rsa") of pathnames of folders ".ssh" of (folders it) of unique values of home directories of users of (current users;logged on users) }"

override wait
hidden=true
runas=currentuser
wait CMD /C "{parameter "KeyGenLocation"}" -f {parameter "FileSaveLocation"} -t rsa -N ''

// http://guides.beanstalkapp.com/version-control/git-on-windows.html#installing-ssh-keys
// http://stackoverflow.com/questions/10767488/automate-ssh-keygen-t-rsa-so-it-does-not-ask-for-a-passphrase
// http://stackoverflow.com/questions/4565700/specify-private-ssh-key-to-use-when-executing-shell-command-with-or-without-ruby
// https://www.ibm.com/support/knowledgecenter/SS63NW_9.2.0/com.ibm.tivoli.tem.doc_9.2/Platform/Action/c_override.html
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!