mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #861] 关于点对点传输的疑问? #679
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#679
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jsjcjsjc on GitHub (Jul 28, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/861
您好,我看了说明还是有些疑惑,按照原文的意思如果实现ssh点对点是这样配置嘛?
服务端需要运行2个进程?
服务端:
frps.ini
[common]
bind_port = 7000
bind_udp_port = 7001
用./frps -c ./frps.ini运行
frpc.ini
[common]
server_addr = 47.74.229.61
server_port = 7000
[p2p_ssh]
type = xtcp
只有 sk 一致的用户才能访问到此服务
sk = abcdefg
local_ip = 127.0.0.1
local_port = 22
用 ./frpc -c ./frpc.ini运行
客户端
frpc.ini
[common]
server_addr = 47.74.229.61
server_port = 7000
[p2p_ssh_visitor]
type = xtcp
XTCP 的访问者
role = visitor
要访问的 XTCP 代理的名字
server_name = p2p_ssh
sk = abcdefg
绑定本地端口用于访问 ssh 服务
bind_addr = 127.0.0.1
bind_port = 6006
用./frpc -c ./frpc.ini 运行?