mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #97] ssh没有正常工作 #44
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#44
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 @SmarkSeven on GitHub (Aug 25, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/97
按照示例配置启动frps和frpc之后,通过 ssh 访问内网机器,连接总是超时。
[root@iZ4i1kgqxZ ~]# ssh -oPort=6000 KIL@192.168.31.138 ssh: connect to host 192.168.31.138 port 6000: Connection timed out@iseeyou commented on GitHub (Aug 25, 2016):
ssh可以,你看是不是自己哪个防火墙的问题。
@SmarkSeven commented on GitHub (Aug 25, 2016):
公网Linux服务器防火墙配置:
内网Mac服务器没有开启防火墙功能 @iseeyou
@flashsoft commented on GitHub (Aug 25, 2016):
ssh root@ip -p 端口
@SmarkSeven commented on GitHub (Aug 25, 2016):
仍然是连接超时
frps启动正常
frpc启动正常
@FlashSoft
@flashsoft commented on GitHub (Aug 25, 2016):
怎么看你都应该是 ssh root@120.25.147.61 -p 6000吧
@SmarkSeven commented on GitHub (Aug 25, 2016):
120.25.147.61 是公网IP
ssh root@120.25.147.61本就可以远程登录
ssh root@120.25.147.61 -p 6000这样做有什么额外的意义?
我想要的是从外网访问内网主机资源,so how to do?
@FlashSoft
@iseeyou commented on GitHub (Aug 25, 2016):
@SmarkSeven 从外网访问内网,你应该是访问外网的ip,frp帮你打洞到内网。。。
@SmarkSeven commented on GitHub (Aug 25, 2016):
也就是说这个访问行为同时有三个主机参与
1.我的电脑 、2.被访问的内网主机、3.搭桥的外网主机
今天第一次接触内外穿透,有很多地方不明白
@iseeyou 是这样吗
@SmarkSeven commented on GitHub (Aug 25, 2016):
刚刚试了下
ssh user@xx.xx.xx.xx -p 6000和
ssh -oPort=6000 user@xx.xx.xx.xx这两种形式都可以
谢谢 @iseeyou @FlashSoft