端口映射


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"
}

相关