[GH-ISSUE #2390] STCP preshared key authentication for one server and one client? #1897

Closed
opened 2026-05-05 13:13:32 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @yuis-ice on GitHub (May 12, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2390

I saw "Expose your service privately" on the README. In the section, it's explained that client B as a SSH server and client C as a SSH client, so there are "server", "client", "client", right? But here what I want to do is, server A as a SSH client and client B as a SSH server. This structure. Just like "Access your computer in LAN by SSH" on the README. Basically client will be required to set "sk" preshared key in order to connect to the frp server's port 7000.

So, I wonder I can or cannot do something like this? :

# frps.ini  
[common]
bind_port = 7000
sk = abcdefg
# frpc.ini
[common]
server_addr = 220.xx.xx.xx
server_port = 7000
sk = abcdefg

[ssh]
type = stcp
local_ip = 127.0.0.1
local_port = 2222
remote_port = 6001
Originally created by @yuis-ice on GitHub (May 12, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2390 I saw "Expose your service privately" on the README. In the section, it's explained that client B as a SSH server and client C as a SSH client, so there are "server", "client", "client", right? But here what I want to do is, server A as a SSH client and client B as a SSH server. This structure. Just like "Access your computer in LAN by SSH" on the README. Basically client will be required to set "sk" preshared key in order to connect to the frp server's port 7000. So, I wonder I can or cannot do something like this? : ``` # frps.ini [common] bind_port = 7000 sk = abcdefg ``` ``` # frpc.ini [common] server_addr = 220.xx.xx.xx server_port = 7000 sk = abcdefg [ssh] type = stcp local_ip = 127.0.0.1 local_port = 2222 remote_port = 6001 ```
gitea-mirror 2026-05-05 13:13:32 -06:00
Author
Owner

@fatedier commented on GitHub (Jun 8, 2021):

Not support. You should deploy frps and one frpc in the same machine.

<!-- gh-comment-id:856882710 --> @fatedier commented on GitHub (Jun 8, 2021): Not support. You should deploy frps and one frpc in the same machine.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 24, 2021):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:885974373 --> @github-actions[bot] commented on GitHub (Jul 24, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1897
No description provided.