![]() ![]() If the variable doesn’t exist in the file, simply add GatewayPorts yes at the end of the file ![]() If you found it and it looks like this #GatewayPorts no, delete “#” (to uncomment it) and change it to GatewayPorts yes. To open the SSH Tunnel directly to Raspberry from another machine, without connecting first to the VPS (actually the connection will also pass through VPS, but we’ll not see anymore the VPS login), we have to add/modify one variable in /etc/ssh/sshd-config on the VPS. In order to access Raspberry from another machine, we have to first ssh to the VPS # ssh then logging in Raspberry from the VPS: # ssh localhost -p 3333 Step four – Connecting to the SSH tunnel from another machine ![]() Step three – Connecting to the SSH tunnel from VPSĪfter we’ve created the tunnel with the command at step 1, Raspberry can be accessed by executing the following command on the VPS: # ssh localhost -p 3333 Pkts bytes target prot opt in out source destinationĬhain FORWARD (policy ACCEPT 0 packets, 0 bytes)Ĭhain OUTPUT (policy ACCEPT 33 packets, 5915 bytes) # iptables -L -vnĬhain INPUT (policy ACCEPT 39 packets, 4642 bytes) In this case we don’t have to do any settings in iptables. My iptables on VPS has the default configuration, so is not dropping any packets. I’ve opened port 3333 in the Firewall on the management web-interface of the VPS.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |