Code Monkey home page Code Monkey logo

hello-world's Introduction

Hello-World

增加 ssh 登录

  1. 生成 ssh key
$ ssh-keygen -t rsa -b 4096 -C

生成 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub

  1. 上传 ssh key 至 github 将 ~/.ssh/id_rsa.pub 的内容加入 github 的 Settings -> SSH Keys -> New SSH key 内,保存

  2. 测试 github 的 ssh 链接

  1. 检查本地 origin 地址
$ git config -l
.....
remote.origin.url=https://github.com/...
.....

remote.origin.urlhttps 的,提交还要用户名密码

  1. 更新本地 origin 地址为 ssh 方式
$ git remote remove origin

$ git remote add origin [email protected]:...

$ git config -l
......
[email protected]:...
......

remote.origin.url[email protected]的,现在应该好了

  1. Done

添加 ssh-key

  1. 启动 ssh-agent
$ eval `ssh-agent -s`
$ ssh-add your-ssh-file
$ ssh [email protected]


hello-world's People

Contributors

leoly008 avatar adhub-leoly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.