跳至主要内容

申请Oracle免费服务器

网址
https://www.oracle.com/cn/cloud/free/

首先注册账号,填国家china,地区一定要选好,因为免费的机器只能在home region,绑定手机,绑定信用卡。如果提示信用卡绑定失败,那么换个ip重试,比如开手机4G,或者挂VPN

账号申请了,开始申请机器,操作系统选centos7,比较简单,需要密钥
先生成
ssh-keygen -t rsa -N "" -b 2048
 
然后保存两个文件,id_rsa和id_rsa.pub,创建机器使用id_rsa.pub

机器创建好了,可以先telnet yourip 22试试ip是不是通的,如果不通,那么需要更换ip,比较绕
打开你的实例->左下角 附加的VNIC->查看详细->左下角 ip地址->编辑->改成没有公共ip->保存->再编辑,临时公共ip,或者预留ip。这样ip地址就更新了,刷几下就可以没有被ban。

然后用securecrt登陆,账号选择opc,会提示要pub,然后找到刚才的id_rsa.pub,连入成功。开始安装ss等软件。

安装好了,需要改一下防火墙配置
打开你的实例->虚拟云网络->左下角 安全列表->点进去->修改出入站规则

这时候telnet yourip ss端口,如果还是不行,在服务器执行sudo iptables -F,应该就可以了

一般缺点软件
sudo yum install lrzsz cmake gcc  gcc-c++ screen -y
最后
sudo yum update -y

要使用root
sudo su

评论

此博客中的热门博文

ubuntu 添加root登录

Login to your server as root. As the root user, edit the sshd_config file found in  /etc/ssh/sshd_config : vim /etc/ssh/sshd_config ( For details on working with Vim check out our article here !) Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there. PermitRootLogin yes Save and exit the file. Restart the SSH server: systemctl restart sshd or service sshd restart