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 ?
- Install Cygwin On Windows Server 2012 Download
- Install Cygwin On Windows Server 2012
- How To Install Server 2012
- Windows Server 2012 Setup Guide
Active2 years, 7 months ago
Installing Cygwin. To do that, open up your Start menu, type “system” and select the option “System” in the control panel section. If you are using Windows 8, you can access the same section by pressing “Win + X” and selecting “System” from the power user menu. Installing and Testing cygwin. Create the destination folder (C: cygwin or D: cygwin as appropriate). Default permissions will be for administrators and SYSTEM only. Add SERVER Users with modify control to the list. These permissions will be inherited to the rest of the folder as it is populated. Installing the Windows 10 OpenSSH Server. The first step is to click on the Windows Start Menu () and then in the search field type option. A search result labeled Manage optional features will be displayed, which you should click on. This will open up the Manage optional features screen as shown below. Installing & Configuring the Cygwin Cron Service in Windows. To set up cron on Cygwin, you'll need to install two additional cygwin packages using the cygwin setup.exe: cron: Vixie's Cron; cygrunsrv: NT/W2K service initiator; Both programs are in the 'Admin' category. Cron is the cron-daemon and Cygrunsrv is the program used to install & manage Cygwin programs as Windows services.
Installing SFTP (SSH FTP) Server on Windows Server 2012 R2 We go on talking about the means of secure file transfer between a client and a server running Windows Server 2012 R2. Last time we discussed using FTPS as a secure extension of FTP.
mac.1mac.1
Install Cygwin On Windows Server 2012 Download
2 Answers
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:
- cygrunsrv
- openssh
- openssl
- rsync
- xinit
- xorg-docs
- xorg-server
After Cygwin is installed, run the 'Cygwin64 Terminal' as Administrator.
Should privilege separation be used? (yes/no) yes
new local account 'sshd'? (yes/no) yes
Do you want to install sshd as a service? (Say 'no' if it is already installed as a service) (yes/no) no
Install Cygwin On Windows Server 2012
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!
How To Install Server 2012
axusaxus
Windows Server 2012 Setup Guide
The link above says this is just available on latest Windows 10 version:
Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later
AVEbrahimiAVEbrahimi