If there's no output then we need to install OpenSSH.įirst update the package lists: joe mint-smtx :~$ sudo apt-get update To check whether SSH server is installed and running, use following command: joe mint-smtx :~$ ps -A | grep sshd To host a Git repository via SSH, we need to run a SSH server on the Linux machine and of course we also need to install Git there. We will also clone the repository and pull/push the repository to/from Windows 10 machine (which will be acting as a client). We are going to setup remote repository on a Linux Mint machine, which will be running on the local network. In this tutorial we will do the same thing but over SSH protocol. Next, we will cover “tagging” various commits for record-keeping purposes.Ĭonsider deploying files with GitHub actions.In the last tutorial we saw how to host a central repository through local protocol (i.e. We covered a lot here, but you should be getting a solid foundation in Git by now. We now know how to set up a Git repository at a remote server location, how to “push” information to the server, how to clone a repository, and how to “pull” information from the server. Supposing that changes are made to this project in the future, in order for the user to make sure they have the most recent updates, they will need to run a “pull” command: git pull name-of-repo master This is effectively a local Git repository. Using the example above, there will now be a directory called “production” in this location. Unless the user has SSH keys, they will be prompted for the SSH password.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |