How to Set Up a Git Server with SSH on Windows
Part 1 of 2:
Install and Set Up Cygwin
- First, install Cygwin from its website.
- Then install git and OpenSSH packages, either from the links provided or from within Cygwin's setup utility.
- Configure OpenSSH:
- Open cygwin terminal as admin
- Type in 'ssh-host-config -y'
- At the end it will create a default user named 'cyg-server' and ask you a new password for that user.
- When finished, type in 'net start sshd' to start the openssh server.
- Make sure your install is working as follows:
- Open cygwin terminal as admin
- Type 'git' to see if git is working.
- type 'ssh cyg-server@localhost' to see if you are able to communicate with the server.
Part 2 of 2:
Git Operations with the Server
- On your other computer, you can git ssh the server by specifying 'cyg_server@ip_adress_of_open_ssh_server'.
- Example to do on the other machine:
- Open git bash and check if openssh server is reachable with the command 'ssh cyg_server@cyg_server@ip_adress_of_open_ssh_server'. If it asks for your password, then you are all set up. Otherwise recheck Part 1 instructions.
- Open git bash inside the repository you want to push.
- add remote with 'git remote add myRemote ssh://cyg_server@ip_adress_of_open_ssh_server/~/git/remote.git'
- push with 'git push MyRemote master'
- Example to do on the other machine:
4.2 ★ | 5 Vote
You should read it
- How to Compile a C Program
- The difference between web server and app server
- Network basics: Part 3 - DNS Server
- How to set up your own Git server on Linux
- Use IIS to set up FTP Server on Windows
- How to change DNS server on the most popular routers
- What is VPS? VPS used to do? What is VPS different from Server?
- 7 great ideas using Raspberry Pi as a server
May be interested
- Instructions for installing Windows Server 2016 on Windows 10the new version of windows server will bring us closer to the cloud, integrating with azure services, especially on sql / db and on management systems that identify and grant access. the article will introduce new features and how to install windows server 2016 on windows 10.
- What does Windows Server 2016 bring to small and medium businesses?windows server system must be no stranger to users in general and network administrators in particular. this is a system that provides easy interaction as well as user friendliness. today, tipsmake.com will mention the features that windows server 2016 brings to businesses.
- Learn about Windows Server 2012 (Part 3)on windows server 2012, you can install a role or feature on a virtual hard disk that contains the inactive windows server installation.
- Recent Windows Server Updates Cause DNS Errorsmicrosoft has just fixed an issue that caused dns stub zone loading errors that could lead to dns resolution issues on windows server 2019 systems.
- Configure Windows Server 2008 to remotely access SSL VPN Server (Part 3)in the previous two articles of this series on how to create an ssl vpn server on windows server 2008, we introduced the basics of vpn connection issues, then went into the configuration of the server. . in this process,
- How to install IIS in Windows Server 2012iis or internet information services is one of the most important services in windows server 2012. it has improved features compared to previous versions.
- Instructions for installing and configuring DNS Server on Windows Server 2016dns configuration is similar to installing it, which means you don't need to be too bothered or ask any administrator to help you do that, because you can do this yourself, with the following instructions are detailed in this article.
- Learn about Windows Server 2012 (Part 1)windows server 2012 interface is easy to confuse users with previous versions like windows server 2008 or windows server 2008 r2.
- Instructions for setting up individual FTP Server with FileZillaunlike http - designed to forward hyper - text data over tcp connections, standard ftp ensures that the server responds to requests as soon as it receives a signal from the host. not only provides fast and accurate file transfer, but also security, gives users more options in the process of downloading and uploading data ...
- Learn about Windows Server 2012 (Part 2)although windows server 2012 automatically assigns each server a random name. however, admin, the user wants to change with any name for meaning.