s40723210 cd2020

  • Home
    • Site Map
    • reveal
    • blog
  • Weeks
    • Week1-5
      • OBS Streaming
    • Week6-9
      • Article impression
    • Week10-14
      • SSH setting
    • Week15-18
    • Weeks Meeting
  • 期末報告
  • Notes
    • Linux 指令
    • vi 與 vim 的指令整理
    • Q&A
  • Assignments
    • assignment1
      • Random grouping
      • Portable system
      • Four wheel car
    • assignment2
      • DigitalProductCollaboration
      • EngineeringProductDesign
      • MechanicalDesignProcess
      • Keyboard control car
    • assignment3
      • MSModelingAndTFApproaches
      • MechatronicDesignCases
      • MechaFutureAndChallenges
      • MechaEducFutureNeed
    • Final project
      • Car gripper Implement
  • CoppeliaSim
    • BubbleRob tutorial
    • Line following BubbleRob
    • External controller tutorial
    • Simulation
    • Simulation dialog
  • Webots Tutorial
    • User Interface
    • Scene Tree
Week10-14 << Previous Next >> Week15-18

SSH setting

以ssh 對 Github 連線(目前使用的)

1.先將Y:\portablegit\bin下的sh.exe(通常會有)建立起來。

2.輸入sh,輸入ssh-keygen -t rsa -b 4096 -C "學號"。

3.在Y:\home_mdecourse裡創建一個.ssh。

4.輸入Y:\home_mdecourse\.ssh/id_rsa。

5.按完Enter後,下載putty放在Y槽內。

6.編輯start_mdecourse.bat,加入如下的指令。

Set GIT_HOME=%Disk%:\portablegit\bin\
Set GIT_SSH=%Disk%:\putty\plink.exe

7.到自己倉儲的.git,url改成ssh(github)形式。


8.開啟puttygen.exe,將鑰匙存成private key。

9.開啟putty.exe,設定proxy和路徑,在案save。

10.再到github存入自己的key,就可以了。

11.home_mdecourse下的.ssh目錄中的config 如下

# no proxy at home
#ProxyCommand y:/PortableGit/mingw64/bin/connect.exe -H proxy.mde.nfu.edu.tw:3128 %h %p
# set git_ssh=y:/putty/plink.exe with auth under putty github.com session setup
ProxyCommand y:/putty/plink.exe github.com %h %p
  
Host github.com
    User git
    Port 22
    Hostname github.com
     
    # for connect.exe need openssh key format
    #IdentityFile "y:\home\.ssh\id_rsa_mdecourse"
    # for plink.exe need rsa key format but set under putty github.com session
    # plink.exe do not need the following setting
    #IdentityFile "y:\home\.ssh\mdecourse_putty_private.ppk"
  
    TCPKeepAlive yes
    IdentitiesOnly yes


我的教學影片(有字幕):https://youtu.be/k-sOF6PQa1I


IPv4 ssh key 設定(之前使用的)

1.先把git config --edit --system裡面的helper = manager刪除後輸入:wq(是指儲存後退出)。

2.進入控制台>使用者帳戶>認證管理員>windows認證>刪除現存的github帳號。

3.輸入ssh-keygen -t rsa -b 4096 -C "github的email"。

4.輸入你想存放的位子例如:Y:\home\.ssh/id_rsa。

5.一直案Enter到結束。

6.打開id_rsa並且全部複製>進入setting>SSH and GPG keys 。

7.案New ssh key 貼上>輸入想要的名子儲存。

我的教學影片:https://youtu.be/SJHMm3o5uEw

Week10-14 << Previous Next >> Week15-18

Copyright © All rights reserved | This template is made with by Colorlib