[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
<>演示环境:
1.Windows10系统
2.VMware Workstation Pro虚拟机
2.Ubuntu16.04.6(以上版本通用)
<>回归正题
一、在Ubuntu端:
1.首先需要安装SSH服务器,在ubuntu终端输入以下指令
sudo apt-get install ssh
2.输入你的ubuntu系统的密码,根据提示输入 “Yes” 或者 “Y”
* 注意:这里输入密码时,不会显示,输入正确,按回车即可!
这里博主以及执行过了,所以不需要输入Yes。
3.启用SSH服务,输入以下指令
service ssh start
* 此时需要授权,输入ubuntu系统用户密码即可!
4.查看SSH服务运行状态
service ssh status
如果显示是active(running),则状态正常。
二、在Windows端:
1.开始SSH服务
Win+S,在搜索框输入 “服务” ,在本地服务器中找到 OpenSSH Authentication Agent ,右键属性,将其改成自动,点击应用确定。
* 注意:win10以下系统需要下载putty软件开启SSH服务.(这里不过多讲解)
2.Win+S输入cmd回车,在终端下输入:
ssh -p 22 name@ip
name:ubuntu系统对应的用户名名称
ip:ubuntu系统服务器的ip
首次连接,需要确认,输入YES或者Y,然后输入ubuntu系统的用户密码即可!
此时连接成功!