---
# System prepended metadata

title: Setup SSH
tags: [MIS]

---

---
tags: MIS
---

## Setup SSH AWS
1. Genereate SSH key
```
 ssh-keygen 
 .ssh/codecommit_rsa
```
![](https://i.imgur.com/3zknwCq.png)
![](https://i.imgur.com/JGVj73E.png)
2. Go to IAM to upload SSH Key
![](https://i.imgur.com/Lr6z3Jo.png)
![](https://i.imgur.com/LgaKvzz.png)
![](https://i.imgur.com/W5cPSWW.png)

3. **create config file at ".ssh/config"**
![](https://i.imgur.com/zEBbyFq.png)
![](https://i.imgur.com/A1xhlRc.png)
```
Host git-codecommit.*.amazonaws.com
  User APKAUED6FIWPY2CHQRMZ
  IdentityFile ~/.ssh/codecommit_rsa
```
4. Set and verify ssh connection (enter yes on question)
```
ssh git-codecommit.ap-northeast-1.amazonaws.com
```
![](https://i.imgur.com/BCyWQjJ.png)
```
ssh -v git-codecommit.ap-northeast-1.amazonaws.com
```
![](https://i.imgur.com/mVpgadk.png)

Then you are good to go!!

# Setup SSH
* Generate ssh with gitbash:
```
ssh-keygen
```
* fine .ssh folder
![](https://i.imgur.com/F5d0hBp.png)

* update .gitconfig
![](https://i.imgur.com/pY3BjEf.png)

* update tortoisegit
![](https://i.imgur.com/Agxr9v8.png)
```
C:\Program Files\Git\usr\bin\ssh.exe
```
* update .git\config
![](https://i.imgur.com/GamWO8U.png)

# Setup SSH for github
`ssh-keygen -C "BenTina0611@gmail.com"`

# Add public key to github
![](https://hackmd.io/_uploads/ByYc5T9Dh.png)
![](https://hackmd.io/_uploads/ryC95p5Dn.png)
![](https://hackmd.io/_uploads/S1Mi96qwh.png)

# Test your SSH connection: Back in PowerShell, enter the following command:
ssh -T git@github.com

# Clone Repo
![](https://hackmd.io/_uploads/SJkgsacP2.png)

**git.exe clone --progress**` -v "git@github.com:Taco-Tina/vchatArtifact.git" "C:\temp\vchatArtifact"`
