跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • frp 服务器搭建成功, ssh 链接到内网的时候拒绝连接 c
未分類
1 2 月 2022

frp 服务器搭建成功, ssh 链接到内网的时候拒绝连接 c

frp 服务器搭建成功, ssh 链接到内网的时候拒绝连接 c

資深大佬 : chenjunqiang 21

1.防火墙上已经开放 10000 到 20000 的端口。

2.frp 服务器可以通过 web 访问,证明 frp 已经成功了。

3.内网的机子使用 frpc 已经启动成功,这个时候在 frp 后台是可以看到连接中。

4.连接到内网的时候,使用的命令是:ssh -oPort=10022 {xxx.xxx.xx.xx}

5.服务器的配置如下:

You Server IP : xxxxxxxxxx

Bind port : 10000

KCP support : true

vhost http port : 80

vhost https port : 443

Dashboard port : 10001

token : xxxxxxxxxx

tcp_mux : true

Max Pool count : 50

Log level : info

Log max days : 3

Log file : enable

6.内网机子的配置如下 frpc.ini

[common]

sever_addr = xxx.xx.xx.xx

server_port = 10000

token = xxxxxxxx

[ssh]

type = tcp

local_ip = 127.0.0.1

local_port = 22

remote_port = 10022

7.执行 ssh 命令的时候,内网的机子命令行下会提示 error dial tcp 127.0.0.1:22 connect:connction refuse.

大佬有話說 (3)

  • 資深大佬 : commoccoom

    感觉是 ssh 的问题,在内网里试试 ssh 能不能连上

  • 資深大佬 : hefish

    感觉 sshd 没开在 22 端口或者 iptables 不允许连接 127.0.0.1:22

  • 主 資深大佬 : chenjunqiang

    @commoccoom 对,ssh 安装好后就好了。

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具