# ssh 連線
###### tags: `uscc`
- 本地端
- 使用 `ssh-keygen` 生成 public key 以及 private key
- `ssh-keygen`
- 複製 public key to 到 server 端
- 在 server 端使用 `ip a`
- 兩種方法連到 remote server
- ssh to remote server
- `ssh [username]@[ip addr]`
- setup config to ssh without type ip address
- `vim ~/.ssh/config`
- type `ssh [username]` to login
```bash
# /.ssh/config
## example
Host test
HostName 140.116.000.000
Port 22
User p76091543
IdentityFile ~/.ssh/id_rsa
```