树莓派玩机记录

1. 通过端口转发访问内网树莓派

ssh   -CfNg -R 2222:127.0.0.1:22  [email protected]

问题描述:

你好, 内网机器和外网机器已经建立了链接, 端口是 2222, 正常说在外网机器 ssh -p 2222 localhost 这样可以登录内网机器, 但是 ssh_exchange_identification: Connection closed by remote host 出现这个错误......./etc/ssh/sshd_config 里面的 gatewayport 已经是 yes 的.... 请问这个是什么问题~

之前没有遇到这个问题,所以我上网大概搜了一下,解决方法是修改 / etc/hosts.allow 文件,加入 sshd:ALL,修改完成后重启一下 sshd 服务,尝试一下是否可以连接。如果解决希望能告知我一下:)

2. 用Raspberry Pi(树莓派)打造各种服务器

https://blog.csdn.net/gaochaoweino/article/details/78738358

猜你喜欢

转载自dbp5588.iteye.com/blog/2418238