首页 > 其他 > 详细

端口映射

时间:2019-05-12 15:11:06      阅读:109      评论:0      收藏:0      [点我收藏+]
openssh服务

请在需要链接的两台电脑上都安装openssh服务
 

sudo apt-get install openssh-client
sudo apt-get install openssh-server12
2.启动服务:
 
sudo /etc/init.d/ssh start
 
连接

查看服务器的外网IP
 

sudo curl ipinfo.io1
得到如下结果:
 
{
    "ip": "125.146.123.57",
    "city": "Wuchuan",
    "region": "Guangdong",
    "country": "CN",
    "loc": "52.3168,101.5880",
    "org": "AS4134 CHINANET-BACKBONE"
}

端口映射

原文:https://www.cnblogs.com/gris/p/10852300.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!