# 遠端連線

1.使用ssh

ex:

```
ssh -i C:\Users\yicheng\Desktop/pem1.pem  ubuntu@ec2-52-198-111-128.ap-northeast-1.compute.amazonaws.com
```

2.使用putty

(如果是aws ec2產生的private key 要先用putty keygen轉格式)

![](https://4163569081-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0u4DAtuAfToE3sxIg5%2F-M0u4F924JeMGSBL2NQM%2F-M0u4c4A_UPDAV3IeGvY%2F0aa1.png?generation=1582596282716508\&alt=media)

然後找到左方的SSH > AUTH 加上剛才轉好的金鑰

![](https://4163569081-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0u4DAtuAfToE3sxIg5%2F-M0u4F924JeMGSBL2NQM%2F-M0u4c4CcOG8Ng6aAYDI%2Fsa20.png?generation=1582596288696220\&alt=media)

2.VNC server
