目标:通过密码从国内代理流量到国外(ssh)
frp server
略,通用配置
目标服务器(海外)sshd server
frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
[secret_ssh]
type = stcp
sk = abcdefg
local_ip = 127.0.0.1
local_port = 22
国内服务器
frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
[secret_ssh_visitor]
type = stcp
role = visitor
server_name = secret_ssh
sk = abcdefg
bind_addr = 127.0.0.1
bind_port = 6000
server_name sk 可以简单理解成frpc远端的账号密码。
从国内访问海外ssh
ssh -oPort=6000 x.x.x.x(国内的ip)