32 Commits

Author SHA1 Message Date
Paul Higinbotham
043a20b808
Update script to account for PS7.3 native command argument parsing changes (#642)
* Update script to account for PS7.3 native command argument parsing changes

* Update version
2022-12-02 14:58:56 -08:00
Tess Gauthier
1f03b276fd
fix installers not updating system path (#622)
* fix msi installer not updating system path

* modify install script to add binary path to system path

* debug appveyor

* add debug message to add-path and update appveyor to be compatible with changes

* fix appveyorhelper.psm1 after accidentally removing call to uninstall

* fix typo

* use PS drive to modify PATH

* rename Add-Path to Add-MachinePath in export list
2022-11-03 11:57:30 -04:00
Tess Gauthier
9598cec2fc
fix install-sshd incompatability with windows pwsh 5.1 (#590) 2022-03-24 10:32:32 -07:00
Tess Gauthier
672c7eb270
Update install sshd (#585) 2022-03-21 15:02:15 -07:00
Tess Gauthier
9d733203d6
fix folder permissions for programdata\ssh during server install (#549) 2022-02-04 16:22:59 -08:00
bagajjal
0d88c342a5
Spin up ssh-sk-helper in user context when called from ssh-agent (#560) 2022-02-01 18:46:19 -08:00
vthiebaut10
83927cbe02
sftp-server running on windows writes incoming file from linux client… (#502) 2021-04-28 14:56:51 -07:00
vthiebaut10
904ffd36d4
Use moduli file under openssh-portable root folder (#499) 2021-04-19 10:27:24 -07:00
vthiebaut10
794bf53f49
Check if Powershell is running in admin mode before running script (#493) 2021-03-30 14:01:43 -07:00
bagajjal
2539e60536
fix HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH registry permissions (#484) 2021-03-22 19:17:33 -07:00
Yanbing
ec3eb7a088
Fix issue install-sshd.ps1 failed on Nano, update it to match inbox manifest, and add setup and uninstall tests (#305)
1. Fix issue install-sshd.ps1 failed on Nano
2. Update settings of services in install-sshd.ps1 to match windows inbox
3. added setup tests and update the test helper scripts to run setup tests before changing configurations on the machine
4. added uninstallation tests
2018-04-24 11:50:44 -07:00
Manoj Ampalam
9fe39c0c73
Fixed regression caused due to ETW support changes (#282)
Regression: Service is unable to start if "ssh" programdata directory is missing.
Reason: This is due to refactored changes around w32_programdir() that moved its initialization to within win32_posix_initialize. sshd_main() is relying on this call even before the POSIX layer gets initialized.
Fix: Reverted the refactoring changes and added comments to consolidate these changes later. Also removed directory creation logic in install-sshd.ps1 that masked this issue before.
2018-03-09 14:56:47 -08:00
Manoj Ampalam
2c559a2b6c
Added support for ETW based logging (#280)
https://github.com/PowerShell/Win32-OpenSSH/issues/95
2018-03-06 15:33:19 -08:00
bagajjal
c85ba2b8c3 Separate binary path from cfg path and log path (#263)
Separate binary path from cfg path and log path, test update
2018-01-19 15:12:43 -08:00
Manoj Ampalam
32ff0c2aed
Added support to autogen hostkeys at sshd service startup (#259)
* Added support to autogen hostkeys at sshd service startup
* Integrated latest changes to sshd_config
2018-01-17 08:52:10 -08:00
Manoj Ampalam
fdd54b6334
Implement Unix styled privilege separation in Windows (#258)
OpenSSh privilege separation model - http://www.citi.umich.edu/u/provos/ssh/privsep.html 
Posix_spawn is implemented in POSIX adapter as an alternative to fork() that is heavily used in Privilege separation. 
Additional state info is added to sshd to accommodate distinguishing the various modes (privileged monitor, unprivileged child, authenticated child).
Required service state (like config and host keys) is transmitted over pipes from monitor to child processes.
Changes to installation scripts and tests to accomodate new architectural changes
2018-01-15 13:57:31 -08:00
Manoj Ampalam
6861ecaa41
Fixed service banary paths (#243)
PowerShell/Win32-OpenSSH#963
2017-11-28 21:03:10 -08:00
Manoj Ampalam
7a4a10a224 Secured permissions on logs folder and underlying logs (#221) 2017-10-12 22:46:26 -07:00
Yanbing
e649e8f926 Fix for issue 888, 880 (#211)
fix for PowerShell/Win32-OpenSSH#888
Add systemid as FullAccessNeeded
fix for PowerShell/Win32-OpenSSH#880
2017-09-28 14:55:40 -07:00
Manoj Ampalam
f8371cf5c6 Fix (#195)
PowerShell/Win32-OpenSSH#846
2017-08-17 12:31:35 -07:00
Rui Lopes
da48ae4da0 properly redirect sc.exe stderr to $null (#187)
Signed-off-by: Rui Lopes <rgl@ruilopes.com>
2017-07-28 15:36:01 -07:00
Yanbing
7a8933744e Remove secedit dependency (#179) 2017-07-10 13:25:08 -07:00
Manoj Ampalam
894f6dd79c Changes to remove Impersonation Privilege requirement in sshd (#142)
https://github.com/PowerShell/Win32-OpenSSH/issues/726
2017-05-18 22:57:42 -07:00
Manoj Ampalam
9491729542 Revert recent change and run sshd back in service account (#134)
https://github.com/PowerShell/Win32-OpenSSH/issues/681
2017-05-09 21:46:46 -07:00
Manoj Ampalam
1ff1b07410 Run SSHD as NetworkService (#121)
PowerShell/Win32-OpenSSH#681
2017-04-24 22:02:03 -07:00
Manoj Ampalam
5ea573d04e Cranked version, Added Package-OpenSSH routine, updated install-sshd (#106) 2017-04-04 12:05:31 -07:00
Manoj Ampalam
2d94c9b3aa Replaced ntrights with Powershell equivalent logic (#99)
https://github.com/PowerShell/Win32-OpenSSH/issues/234
2017-03-28 22:35:32 -07:00
Manoj Ampalam
6fd81a671c Temporary fix to ssh redirection issue in Powershell environment (+ one other minor fix) (#98)
PowerShell/Win32-OpenSSH#609
PowerShell/Win32-OpenSSH#608
2017-03-28 14:54:19 -07:00
Yanbing
47c4ec917b SCP bug fix: SCP does not copy file exceeds 2,147,483,648 bytes. (https://github.com/PowerShell/Win32-OpenSSH/issues/145) (#70)
* SCP bug fix: https://github.com/PowerShell/Win32-OpenSSH/issues/145

1. update the install-sshd does not failed when log folder exists.
2. enable to copy files larger than 2G

* update the new-item usage

* exclude unittest-sshkey.exe temperately

* move declaration to top

* update white spaces

* Remove the memset
2017-01-31 20:07:29 -08:00
Manoj Ampalam
50ddd23474 Added credits to install-sshd.ps1 2016-12-20 13:50:02 -08:00
Manoj Ampalam
4adde42f61 Fix to SDDL issue in install-sshd.ps1 2016-12-20 10:16:50 -08:00
Manoj Ampalam
5ad8a2c358 Sources Merged from Win32 Fork 2016-12-19 14:46:28 -08:00