Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Frp installation tutorial penetrates SSH

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Frp consumption Server Traffic Test (September 2, 2019)

Frp simple file access to the client (August 24, 2019)

Multiple frp clients penetrate through a single server connection (August 23, 2019)

Frp peer-to-peer udp penetrates ssh without server traffic (May 30, 2019)

Frp ssh secure connection and server security settings (May 29, 2019)

Frp console Monitoring dashboard configuration (May 27, 2019)

Frp intranet access local web services http and https through the public network (May 26, 2019)

Frp installation tutorial penetrates SSH (May 25, 2019)

Frp Intranet Penetration course (May 25, 2019)

Frp installation package selection

Installation package address of frp

Https://github.com/fatedier/frp/releases

See a lot of bags.

386 amd64 is 32-bit system amd64 is 64-bit system.

All right, download a frp_0.27.0_linux_amd64.tar.gz

Under execution, unzip it and change it to the frpc directory, cd, and enter it.

. / frpc

-bash:. / frpc: cannot execute binary file

A great deal of information shows that this thing is in the wrong version.

Frp is written in go language, install go

Https://dl.google.com/go/go1.11.darwin-amd64.pkg

After installation, execute go-version

Go version

Go1.11 darwin/amd64

Instantly understand that to download the first one, that linux_amd64.tar.gz seems to correspond to the version of go. So look at the go version of your computer before you can decide which one to download. Download the corresponding darwin/amd64 version of my computer again.

. / frpc

2019-05-22 10:03:26 [W] [service.go:82] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused

Dial tcp 127.0.0.1:7000: connect: connection refused

This response is the correct version, but the wrong configuration of the response.

Frp basic configuration, starting

Start with configuration

The server starts the test

. / frps-c. / frps.ini

2019-05-22 10:06:33 [I] [service.go:139] frps tcp listen on 0.0.0.0:7000

2019-05-22 10:06:33 [I] [root.go:204] Start frps success

The default configuration is good and does not need to be changed.

[common]

Bind_port = 7000

Frps stands for frp server

Frpc stands for frp client

The client starts the test

Frpc.ini

Point to the local by default and test it directly. Play with yourself.

[common]

Server_addr = 127.0.0.1 # Server IP

Server_port = 7000 # the port opened by the server, waiting for the client to connect

[ssh] # ssh Super forwarding

Type = tcp # type tcp udp

Local_ip = 127.0.0.1 # Local IP

Local_port = 22 # Local Port

Remote_port = 6000 # Local forwarding Port

. / frpc-c. / frpc.ini

2019-05-22 10:13:53 [I] [service.go:221] login to server success, get run id [b1247b7334ecc4a0], server udp port [0]

2019-05-22 10:13:53 [I] [proxy_manager.go:137] [b1247b7334ecc4a0] proxy added: [ssh]

2019-05-22 10:13:53 [I] [control.go:144] [ssh] start proxy success

A server and a client are successfully established locally, as shown in the figure MORE https://java-er.com/blog/frp-install/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report