mirror of
https://github.com/fatedier/frp.git
synced 2026-05-16 16:45:50 -06:00
[GH-ISSUE #20] The ssh cannot be connected sometimes #6
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#6
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 @fuzihaofzh on GitHub (Apr 8, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/20
I can connect to client directly, but when I connect through server using
ssh user@server.ip -p 6022, it often stucked and after some time show:ssh_exchange_identification: Connection closed by remote hostI can only login 1 times in 10.
When I forward 80 port, it works well.
I want to know whether it will missing some information?
The configs are as bellow:
server:
client:
ssh log:
@fatedier commented on GitHub (Apr 8, 2016):
frps just forward contents it received.
I read some articles about
ssh_exchange_identification: Connection closed by remote hostand found/etc/hosts.denyis the keyword.However, you said you can only login 1 times in 10, so i am still not sure which reason cause this issue, maybe you can try to fix it with google (e.g. http://edoceo.com/notabene/ssh-exchange-identification), or provide a reproducible environment for me to check.
@fatedier commented on GitHub (Jul 20, 2016):
Recently i find the same problem in my friend's server and use
tcpdumpto trace the packages.The problem is that frps have a certain chance to loss the first package
sshdwrites to client such asSSH-2.0-OpenSSH_5.3.I fix it by using the same
bufio.Readerobject.