## 准备
## 下单
访问 https://free.nodeloc.com/vps,选择一个你心仪的配置,点击 `Add to Cart` -> `Continue to Checkout` -> `结账` 就可以了
## 配置
点击 ` `,进入详情页
[upl-image-preview url=https://s.rmimg.com/2024-07-27/1722061384-998812-image.png]
翻到底下,`Login to control panel`
[upl-image-preview url=https://s.rmimg.com/2024-07-27/1722061484-111216-image.png]
然后会进入一个这样的地方:
[upl-image-preview url=https://s.rmimg.com/2024-07-27/1722061646-447163-image.png]
Name:随便写,Random一个也可以
Hostname:可选,不写的话就是Name(?)
Timezone:写上海就行
OS:自己选一个就可以(以Ubuntu为例)
SSH Keys
使用密码登录
不用管它,直接 `Install` -> `Install without`
不用密码登录(本文示例)
`Add Key`
Name 随便写,也可以直接 Random 一个
Public Key 写你设备自己的 ssh **public key**(后缀是.pub的那个),一般在 `~/.ssh`
补充:ssh key生成可以参考 [GitHub 文档](https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
<LI><s>- </s><p>确认之后要<STRONG><s>**</s>选中<e>**</e></STRONG></p></LI>
<LI><s>- </s><p><C><s>`</s>Install<e>`</e></C> -> <C><s>`</s>Install Now<e>`</e></C></p></LI></LIST></LI></LIST></LI></LIST>
然后就可以了
## 连接
[upl-image-preview url=https://s.rmimg.com/2024-07-27/1722062296-697406-image.png]
这里是你的 IP
本文以 Windows 终端 + Windows 可选功能中的 OpenSSH 客户端和 Termius 示范
### Windows 终端
直接
```
ssh root@your_ip
```
然后不出意外的就能连上了
>如果是重装的话要记得清一下 known_hosts
### Termius
Termius -> `Keychain` -> `Key`
把你自己的 Private Key 添加进去(必须和配置时的 Public Key 是一对)
Termius -> `Hosts` -> `New Host`
填写 VPS 基本信息,包括 IP、用户名和密钥
然后不出意外的就能连上了
>如果是重装的话要记得清一下 Termius -> `Known Hosts`