[GH-ISSUE #2859] Can't connect to local service #2283

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

Originally created by @Parmicciano on GitHub (Mar 19, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2859

Bug Description

Hello,
I'm trying to set up frp to connect an ec2 instance with an ubuntu virtual machine and i get the following error :
[E] proxy.go
[ssh]connect to local service [127.0.0.1:22] error : dial tcp 127.0.0.1:22 connect : connection refused

I've followed the basic tutorial in the readme

frpc Version

0.40.0

frps Version

0.40.0

System Architecture

linux/amd64

Configurations

Ubuntu vm inside a windows computer that connect to an EC2 instance with a public ip (AWS)

Logs

[E] proxy.go
[ssh]connect to local service [127.0.0.1:22] error : dial tcp 127.0.0.1:22 connect : connection refused

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 @Parmicciano on GitHub (Mar 19, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2859 ### Bug Description Hello, I'm trying to set up frp to connect an ec2 instance with an ubuntu virtual machine and i get the following error : [E] proxy.go [ssh]connect to local service [127.0.0.1:22] error : dial tcp 127.0.0.1:22 connect : connection refused I've followed the basic tutorial in the readme ### frpc Version 0.40.0 ### frps Version 0.40.0 ### System Architecture linux/amd64 ### Configurations Ubuntu vm inside a windows computer that connect to an EC2 instance with a public ip (AWS) ### Logs [E] proxy.go [ssh]connect to local service [127.0.0.1:22] error : dial tcp 127.0.0.1:22 connect : connection refused ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@Becods commented on GitHub (Mar 20, 2022):

Please check if 127.0.0.1:22 can be accessed under normal circumstances
ssh root@127.0.0.1

<!-- gh-comment-id:1073159699 --> @Becods commented on GitHub (Mar 20, 2022): Please check if 127.0.0.1:22 can be accessed under normal circumstances ```ssh root@127.0.0.1```
Author
Owner

@Parmicciano commented on GitHub (Mar 20, 2022):

ssh root@127.0.0.1
ssh: connect to host 127.0.0.1 port 22: Connection refused

It seems that it cant be accessed

<!-- gh-comment-id:1073206967 --> @Parmicciano commented on GitHub (Mar 20, 2022): >>>>>ssh root@127.0.0.1 ssh: connect to host 127.0.0.1 port 22: Connection refused It seems that it cant be accessed
Author
Owner

@Becods commented on GitHub (Mar 20, 2022):

It seems that it cant be accessed

Then it's your ssh problem, not frp's business, you can close this issue now

<!-- gh-comment-id:1073211682 --> @Becods commented on GitHub (Mar 20, 2022): > It seems that it cant be accessed Then it's your ssh problem, not frp's business, you can close this issue now
Author
Owner

@yunyuyuan commented on GitHub (Dec 19, 2022):

Myabe you need start sshd
sudo systemctl status sshd
sudo systemctl start sshd

<!-- gh-comment-id:1357282113 --> @yunyuyuan commented on GitHub (Dec 19, 2022): Myabe you need start `sshd` `sudo systemctl status sshd` `sudo systemctl start sshd`
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#2283
No description provided.