Changes

FreeSSHd

1,820 bytes added, 16:23, 5 June 2013
updated package with new options.
If you have a Windows firewall and you would like to open port 22, see [[Opening_Port_Windows_XP_firewall|opening a port in Windows XP firewall]].
Modified from original package below to allow you to upload and authorized_keys file for user kahuna, a banner.txt file and a preconfigured ini file. It also registers, configs and starts the service so that it will auto start.
<source lang="xml">
<package id="freesshd" name="freeSSHd" revision="120" reboot="false" priority="10">
<check type="file" condition="exists" path="C:\Program Files\freeSSHd\unins000.exe" />
 
<install cmd='%SOFTWARE%\system\freesshd.exe /VERYSILENT /NOICON /SUPPRESSMSGBOXES /LOADINF="%SOFTWARE%\system\freesshd/freesshd.inf"' />
<install cmd='%comspec% /c wmic service where name="FreeSSHDService" call stopservice' />
<install cmd='%comspec% /c wmic service where name="FreeSSHDService" call delete' />
<install cmd='%comspec% /c copy /v /y "%SOFTWARE%\system\freesshd\freesshdservice.ini" "c:\program files\freesshd"'/>
<install cmd='%comspec% /c copy /v /y "%SOFTWARE%\system\freesshd\kahuna" "c:\program files\freesshd"'/>
<install cmd='%comspec% /c copy /v /y "%SOFTWARE%\system\freesshd\banner.txt" "c:\program files\freesshd"'/>
<install timeout="30" cmd='%comspec% /c "c:\program files\freesshd\freesshdservice.exe" /regserver' />
<install timeout="30" cmd='%comspec% /c "c:\program files\freesshd\freesshdservice.exe" /service' />
<install cmd='%comspec% /c sc config FreeSSHDService start= auto' />
<install cmd='%comspec% /c sc start FreeSSHDService' />
 
<remove cmd='%comspec% /c wmic service where name="FreeSSHDService" call stopservice' />
<remove cmd='%comspec% /c wmic service where name="FreeSSHDService" call delete' />
<remove cmd='"%PROGRAMFILES%\freesshd\unins000.exe" /VERYSILENT' />
<remove cmd='%comspec% /c if exist "c:\program files\freesshd" rmdir /s /q "c:\program files\freesshd"' />
</package>
</source>
 
Original:
<source lang="xml">
<package
Anonymous user