前提条件:
1. 客户机(Client):基于arm的Ubuntu 18.04 机器(树莓派或者pc都行),通过SIM卡连入Internet.
2. 服务器(Server):腾讯云主机,地址(假设):49.222.111.66
ssh设置:
1. 串口或者本地网络口登录客户机(Client), 编辑 /etc/ssh/sshd_config文件, 修改配置文件
PermitRootLogin prohibit-password 改为:PermitRootLogin yes,
修改完了,保存退出,使用命令设置自启动ssh服务
systemctl enable ssh # 设置自启动ssh
systemctl restart ssh # 重新启动ssh
systemctl status ssh # 查看ssh服务状态
2. 使用xshell或者Termius 远程登录云主机(我这边的云主机,操作系统为Ubuntu 18.04),同样的步骤修改ssh的配置,因为之后需要用到免密登录,所以这里还需要开启Pubke