Automation of Cygwin configuration with PowerShell -
i have installed cygwin using powershell scripting.
i doing following step manually:
running new cygwin bash shell (after edit of
cygwin.bat) , enter:mount --change-cygdrive-prefix / chmod +r /etc/passwd /etc/group chmod 755 /varstart cygwin bash shell , run
ssh-host-config. answer yes key generation questions.
is possible automate these things in powershell scripts, installing cygwin, doing steps 1 , 2 in single shot?
use command:
bash.exe ssh-host-config --yes -u "cygwinuser" -c "binmode ntsec tty" -w "pwd@123" cygrunsrv -s sshd later go services.msc check if service running or not
Comments
Post a Comment