6/1/2023 0 Comments Retroshare nat behind firewall![]() Or connect from the middle machine: $ ssh computer]$ ssh -p4040 It will connect to the middle machine and prompt the terminal, you must leave this tab open. Step 2: $ ssh -R 4040:localhost:22 will link your public machine with your destination computer via port 4040 ![]() Home Computer: Where we will access to the destination machine. Middle Machine: A server acting as an intermediary for the connection (a Linode in my case) We are going to work with three machines:ĭestination Machine: That we want to connect to. I've been finally able to make it work (thanks again to Thomas Oster) Please try "ssh localhost" on the machine behind the router to check if sshd is running and working. Yes, if I execute that command in the public server, it connects after asking me for credentials. ![]() I've tried to allow portforwarding in the sshd_config file adding this command: LocalForward 10002 :22īut it gave me this error message: Bad configuration option: LocalForwardĪfter "ssh -R." did you leave the window open?Īfter executing that command, it connects to the remote public machine, and yes, I left the window open.Ĭan you use ssh -p 10002 localhost on the public server after the You have to allow port-forwarding in the /etc/ssh/sshd_config of the In my machine behind the router I have all ports open in iptables. So I opened the 10002 port in the iptables firewall using the following command: sudo iptables -A INPUT -p tcp -dport 10002 -j ACCEPTĪfter that I've executed again the command but it displays the same error message. However this command displays the following output: ssh: connect to host port 10002: Connection refused being the remote_ip_address of a server with public IP and SSH server on which I have full control.Īfter that, I've tried to connect from the remote server to the server behind the router like this: In the machine behind the router I've executed the following command: ![]() It would also help me any alternative on how to create an SSH server behind a Router when you don't have access to the Router.Īs suggested by Thomas Oster answer I've tried the following. Obviously I know my username password, so it seems to me that it's trying to authenticate in another computer under the same network. Then I'm prompted with a password request, however my username password doesn't seem to work. RetroShare is portable, no installation needed.ĭownload: Retroshare 0.5.4c | 13.4 MB (Open Source)ĭownload: Portable Retroshare 0.5.4c | 17.I'm trying to generate an SSH server in a machine behind a router.įirst I tried to bind the SSH to my public IP address: ssh -R 10002:localhost:22 Although the software is designed to be very user friendly, it requires you to be comfortable with some basic networking concepts. RetroShare is a full featured and powerful sharing platform however it is not a "file sharing for dummies" application. Other features include network search, UPnP / NAT-PMP port forwarding support, built-in forums, plug-ins and more. In addition to sharing files, you can also exchange messages (with optional attachments) with your friends from an email-like communication client or the built-in messenger. RetroShare enables you to share files with your authenticated friends in complete privacy, all communication is encrypted and nobody else (not even your ISP) can see what you are sharing. Unlike other file sharing applications, RetroShare only allows people into your network who you exchange GnuPG certificates with (a certificate is created for you when you set up the server). RetroShare is a file sharing and communication platform that allows you to create your own decentralized file sharing and communication network.
0 Comments
Leave a Reply. |