[GH-ISSUE #3124] SFTP does not work over frp #2503

Closed
opened 2026-05-05 13:36:51 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @Nuckerr on GitHub (Oct 10, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3124

Bug Description

I have a server, with sftp. I can connect fine using it's ip, however if I put it under frp with this config;

[code_server]
type = tcp
local_ip = 192.168.0.148
local_port = 22
remote_port = 2007

it gives me
Permission denied, please try again.

frpc Version

0.43.0

frps Version

0.39.1

System Architecture

linux/amd64

Configurations

[code_server]
type = tcp
local_ip = 192.168.0.148
local_port = 22
remote_port = 2007

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Nuckerr on GitHub (Oct 10, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3124 ### Bug Description I have a server, with sftp. I can connect fine using it's ip, however if I put it under frp with this config; ``` [code_server] type = tcp local_ip = 192.168.0.148 local_port = 22 remote_port = 2007 ``` it gives me `Permission denied, please try again.` ### frpc Version 0.43.0 ### frps Version 0.39.1 ### System Architecture linux/amd64 ### Configurations ``` [code_server] type = tcp local_ip = 192.168.0.148 local_port = 22 remote_port = 2007 ``` ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:36:51 -06:00
Author
Owner

@Becods commented on GitHub (Oct 11, 2022):

Permission denied, please try again indicates that the error occurred on your sftp server and has nothing to do with frp.

<!-- gh-comment-id:1274053985 --> @Becods commented on GitHub (Oct 11, 2022): `Permission denied, please try again` indicates that the error occurred on your sftp server and has nothing to do with frp.
Author
Owner

@Nuckerr commented on GitHub (Oct 11, 2022):

Well the password is definitely right. And I can sftp when using my internal ip inside the network, no issues. Only through frp does this error occur

<!-- gh-comment-id:1274761370 --> @Nuckerr commented on GitHub (Oct 11, 2022): Well the password is definitely right. And I can sftp when using my internal ip inside the network, no issues. Only through frp does this error occur
Author
Owner

@Elara6331 commented on GitHub (Oct 13, 2022):

Is it possible that your SFTP server is configured to only accept internal IPs?

<!-- gh-comment-id:1276911200 --> @Elara6331 commented on GitHub (Oct 13, 2022): Is it possible that your SFTP server is configured to only accept internal IPs?
Author
Owner

@Nuckerr commented on GitHub (Oct 13, 2022):

I think that is most likely, how do I configure this?

<!-- gh-comment-id:1277111712 --> @Nuckerr commented on GitHub (Oct 13, 2022): I think that is most likely, how do I configure this?
Author
Owner

@Nuckerr commented on GitHub (Oct 18, 2022):

@Arsen6331?

<!-- gh-comment-id:1282461625 --> @Nuckerr commented on GitHub (Oct 18, 2022): @Arsen6331?
Author
Owner

@Elara6331 commented on GitHub (Oct 18, 2022):

That depends on which SFTP server you're using. Look at the docs of whichever one you're using.

<!-- gh-comment-id:1283056540 --> @Elara6331 commented on GitHub (Oct 18, 2022): That depends on which SFTP server you're using. Look at the docs of whichever one you're using.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 18, 2022):

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

<!-- gh-comment-id:1319397240 --> @github-actions[bot] commented on GitHub (Nov 18, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d 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#2503
No description provided.