frp开启安全地暴露内网服务
被访问端配置
[secret_ssh]
type = stcp
sk = *****
local_ip = 127.0.0.1
local_port = 22
访客端配置
[secret_ssh_visitor]
type = stcp
role = visitor
server_name = secret_ssh
sk = *****
bind_addr = 127.0.0.1
bind_port = 6000
解决ssh_exchange_identificationread connection reset by peer
被访问端配置
vi /etc/hosts.allow
添加
sshd: ALL
然后重启
systemctl restart sshd.service
访客端如果是win系统,可以安装openssh实现cmd中执行ssh命令
https://www.mls-software.com/opensshd.html
- OpenSSH可以作为客户端和服务端,安装时按需选择即可.
站长真是代码大神,过来支持一下!