I had to create a Virtual Machine with Windows Server 2012.
Now I want to connect to it via OpenSSH and Bash, installing OpenSSH is successful, however when I connect to the server via ssh Administrator@<ip>
I can only use the Windows Powershell. Is it possible to install a bash (like git bash or cygwin) and to connect via ssh directly to this shell ?
Windows – Install Bash + openSSH on Windows Server 2012
bashsshwindowswindows-server-2012
Best Answer
You want to use Cygwin, then use Cygwin, right? A big limitation with my instructions is that it's for a single user at a time, SSH isn't running as a service. Hopefully someone can provide an answer to get it working as a service.
Download the installer setup-x86-64.exe and run it.
You need these packages:
After Cygwin is installed, run the "Cygwin64 Terminal" as Administrator.
Give your user ownership of their SSH directory:
Edit the sshd configuration file:
Allow the SSH environment file to be used for non-interactive sessions:
You need a login script to start sshd every time, I lazily created sshd.bat and copied it to shell:common startup
Improvements welcome!