学生可以白嫖阿里云ECS服务器半年~~
学生可以免费白嫖阿里云ECS服务器6个月 : https://developer.aliyun.com/plan/student
完成学生认证之后就可以免费使用1个月,后面可以再免费续费, 认证通过后,同一用户可免费领取1台云服务器ECS,
①固定机型t6 CPU2核,内存2G,
②带宽1M,
③高效云盘40G,
④无数据盘,
⑤指定优惠地域(河源,乌兰察布)
同一用户只可参与1次,限购1台,购买时长为1个月,购买后不得变更配置。

我这里选择centos 7.9版本,其他的就保持它的选择:

确认订单:



进入控制台查看服务器:

重置实例密码:

之后会重启实例
配置安全组规则:

目前保证开启了22号端口即可,方便我们后续通过ssh访问服务器,其他的端口等到需要再开,能少开就少开,为了安全~~

ssh远程连接:
前面我们开启了服务器的22号端口,所以我们可以通过ssh访问服务器,windows中可以直接用cmd或者用xshell、mobaxterm等软件
ssh root@服务器的公网ip
默认登录的是root用户,比较不安全,所以我们需要添加一个新用户并且赋予root权限(可以在命令前加sudo,临时获得管理员权限,这样安全一点)
adduser xxx # 创建用户xxx
usermod -aG root xxx # 给用户xxx分配root权限
passwd xxx # 为用户xxx设置密码
如果觉得 ssh root@ip
这样的写法比较麻烦,我们也可以给远程服务器配置一个别名 xxx, 这样我们就可以通过 ssh xxx
的方式连接了
- Windows客户端:
进入到 C:\Users\你的用户名\.ssh
目录下找到 config 文件,没有就新建一个

在文件中添加如下内容:

- Linux客户端:
配置方式和linux一样,就是文件位置不同: ~/.ssh/config
, 其他配置的内容都是一样的
你只管出发,旅途自有风景~~