ssfc / pytorch_tutorial_official

pytorch tutorial
0 stars 0 forks source link

搭建frp用作内网SSH穿透 #7

Open ssfc opened 3 years ago

ssfc commented 3 years ago

https://zhuanlan.zhihu.com/p/42071021

./frps -c frps.ini

./frpc -c frpc.ini

ssfc commented 3 years ago

ssh -p [端口] [用户名]@[IP] 这里的用户名是内网主机的用户名,不是公网服务器的用户名,我就是掉这坑里了 IP为公网服务器的公网IP 端口号为设置的远程端口

ssfc commented 3 years ago

frp怎样开机启动和后台运行? https://github.com/fatedier/frp/issues/176

ssfc commented 1 year ago

fprc.server写法:

[Unit] Description=Frp Client Service After=network.target

[Service] Type=simple Restart=on-failure RestartSec=5s ExecStart=/home/ssfc/frp/frpc -c /home/ssfc/frp/frpc.ini ExecReload=/home/ssfc/frp/frpc reload -c /home/ssfc/frp/frpc.ini

[Install] WantedBy=multi-user.target

ssfc commented 1 year ago

启用 sudo systemctl start frpc sudo systemctl enable frpc 查看状态 systemctl status frpc

ssfc commented 10 months ago

frp_0.35.1_linux_amd64_1660.zip