Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release-1.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
joefitzgerald committed Apr 5, 2014
2 parents 1489e56 + 403043a commit 616c0a8
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## v1.11 (Planned)
## v1.12 (Planned)

*

## v1.11 (April 5th, 2014)

* Change the default shell for OpenSSH from /bin/bash to /bin/sh (#45)

## v1.10 (March 18th, 2014)

* Ensure WinRM service starts immediately rather than after 120 seconds (#43)
7 changes: 6 additions & 1 deletion scripts/openssh.ps1
Original file line number Diff line number Diff line change
@@ -32,6 +32,11 @@ Write-Host "Setting SSH home directories"
Foreach-Object { $_ -replace '/home/(\w+)', '/cygdrive/c/Users/$1' } |
Set-Content 'C:\Program Files\OpenSSH\etc\passwd'

# Set shell to /bin/sh to return exit status
$passwd_file = Get-Content 'C:\Program Files\OpenSSH\etc\passwd'
$passwd_file = $passwd_file -replace '/bin/bash', '/bin/sh'
Set-Content 'C:\Program Files\OpenSSH\etc\passwd' $passwd_file

# fix opensshd to not be strict
Write-Host "Setting OpenSSH to be non-strict"
$sshd_config = Get-Content "C:\Program Files\OpenSSH\etc\sshd_config"
@@ -74,4 +79,4 @@ netsh advfirewall firewall add rule name="ssh" dir=in action=allow protocol=TCP

if ($AutoStart -eq $true) {
Start-Service "OpenSSHd"
}
}

0 comments on commit 616c0a8

Please sign in to comment.