Emily Emily - 1 year ago 168
Git Question

Port 22 operation timed out

Want to create a project in GIT where I can send my project to others. I created a project on git and now trying to setup the remote. Here is what I did. I set up an SSH key too. What is my issue?enter image description here

Answer Source

First, confirm that you can ssh into the remote site. If you can, double check that the remote repository exists. When adding a remote to an existing local project, my workflow looks like this:

$ ssh example.com mkdir ~/repo/myproject
$ ssh example.com git init --bare ~/repo/myproject
$ cd myproject
$ git remote add origin ssh://example.com/~/repo/myproject
$ git push --set-upstream origin master
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download