简体   繁体   中英

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? 在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM