[GH-ISSUE #2800] How can a client connect to a server through ssh-key? #2241

Closed
opened 2026-05-05 13:26:28 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @cqiwencom on GitHub (Feb 14, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2800

Describe the feature request

How can a client connect to a server through ssh-key?

My VM server uses ssh-key. When the client connects to the server through SSH, you need to specify the local ssh-key path.Do you have the corresponding configuration parameters in the frpc.ini file?

Describe alternatives you've considered

I think we can add a parameter:
[common]
server_addr = x.x.x.x
server_port = 7000
ssh-key = ssh-key-server01.key

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @cqiwencom on GitHub (Feb 14, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2800 ### Describe the feature request How can a client connect to a server through ssh-key? My VM server uses ssh-key. When the client connects to the server through SSH, you need to specify the local ssh-key path.Do you have the corresponding configuration parameters in the frpc.ini file? ### Describe alternatives you've considered I think we can add a parameter: [common] server_addr = x.x.x.x server_port = 7000 ssh-key = ssh-key-server01.key ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:26:28 -06:00
Author
Owner

@fatedier commented on GitHub (Feb 15, 2022):

frp don't use ssh protocol. You don't need ssh-key to connect your frps.

<!-- gh-comment-id:1039800955 --> @fatedier commented on GitHub (Feb 15, 2022): frp don't use ssh protocol. You don't need ssh-key to connect your frps.
Author
Owner

@packet-sent commented on GitHub (Mar 2, 2022):

Describe the feature request

How can a client connect to a server through ssh-key?

My VM server uses ssh-key. When the client connects to the server through SSH, you need to specify the local ssh-key path.Do you have the corresponding configuration parameters in the frpc.ini file?

Describe alternatives you've considered

I think we can add a parameter: [common] server_addr = x.x.x.x server_port = 7000 ssh-key = ssh-key-server01.key

Affected area

* [ ]  Docs

* [ ]  Installation

* [ ]  Performance and Scalability

* [ ]  Security

* [ ]  User Experience

* [ ]  Test and Release

* [ ]  Developer Infrastructure

* [ ]  Client Plugin

* [ ]  Server Plugin

* [ ]  Extensions

* [ ]  Others

If you want to use SSH for proxying then frp isn't the solution but you can just start a local proxy server on the client and ssh to a server with a remote forward port of the local server for it to be accessible by the SSH server.

<!-- gh-comment-id:1056872771 --> @packet-sent commented on GitHub (Mar 2, 2022): > ### Describe the feature request > > How can a client connect to a server through ssh-key? > > My VM server uses ssh-key. When the client connects to the server through SSH, you need to specify the local ssh-key path.Do you have the corresponding configuration parameters in the frpc.ini file? > ### Describe alternatives you've considered > > I think we can add a parameter: [common] server_addr = x.x.x.x server_port = 7000 ssh-key = ssh-key-server01.key > ### Affected area > > * [ ] Docs > > * [ ] Installation > > * [ ] Performance and Scalability > > * [ ] Security > > * [ ] User Experience > > * [ ] Test and Release > > * [ ] Developer Infrastructure > > * [ ] Client Plugin > > * [ ] Server Plugin > > * [ ] Extensions > > * [ ] Others If you want to use SSH for proxying then frp isn't the solution but you can just start a local proxy server on the client and ssh to a server with a remote forward port of the local server for it to be accessible by the SSH server.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 2, 2022):

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

<!-- gh-comment-id:1086525450 --> @github-actions[bot] commented on GitHub (Apr 2, 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#2241
No description provided.