frps.ini [common] tls_enable = true tls_only = true bind_port = 7000 #dashboard_addr = 0.0.0.0 #dashboard_port = 7500 authentication_method = token authenticate_heartbeats = true authenticate_new_work_conns = true token = asdfg
frpc.ini [common] tls_enable = true tls_only = true server_addr = 127.0.0.1 server_port = 7000 authentication_method = token authenticate_heartbeats = true authenticate_new_work_conns = true token = asdfg [ssh] type = tcp use_encryption = true local_ip = 127.0.0.1 local_port = 22 remote_port = 6000
配置自动启动 sudo nano /lib/systemd/system/frps.service [Unit] Description=fraps service After=network.target network-online.target syslog.target Wants=network.target network-online.target [Service] Type=simple #启动服务的命令(此处写你的frps的实际安装目录) ExecStart=/your/path/frps -c /your/path/frps.ini Restart=always RestartSec=10 [Install] WantedBy=multi-user.target systemctl daemon-reload sudo systemctl enable frps sudo systemctl start frps sudo systemctl status frps 客户端自启动配置类似