![]() ![]() I suggest doing a "man ssh" to get a general idea of the usages of the ssh command as it will be useful to know for future as you can set up public and private keys so now password is needed etc. It would seem that you have copied HTML with the user information directly from a webpage? Ok your syntax for the ssh arguments is incorrect. bash: syntax error near unexpected token `newline'Īny ideas? Does my Pi have to have a static IP or is dynamic okay? Type in your password and voila! You can access the SSH server of your RPi from behind any firewall, provided that you install logmeins hamachi software from the machine you want to use to access the RPi. That will start the ssh server service, and allow you to control the RPi terminal remotely.īack on your host machine, open up your favorite SSH program (putty on the PC, terminal on the mac) and run ssh NOTE: the user pi is for the latest debian release, so adjust accordingly. Before you can SSH into it, go back to the pi one last time and run: Now when you launch your remote machines logmein hamachi software, you will see that the raspberrypi has been associated with an IP address that begins with a 5. You will then likely need to head back to that other machine and approve the request. Grant it permission and while you"re there, write down the network ID for your newly created hamachi network. $ sudo hamachi set-nick "pick something creative….perhaps RPI?"Īt this point, take a break to go back to your web account, which should now show that a raspberrypi device is attempting to access it (assuming you set it up that way, i.e. Try running: "$ sudo hamachi -h" to see a list of the commands available to you. $ sudo dpkg -i logmein-hamachi_2.1.0.18-1_bĪll interaction with this software is now done by running commands of the form: You may need to add a flag at the end of that line to disregard authentication, just check the terminal for anything it"s telling you to do and do it, such that you can download the file. This is done via the command line easily enough with: Next, download the logmein hamachi client software for your remote machine (laptop, work machine, what have you) and connect that to your hamachi network. If you don"t pay for a static IP address, or find yourself behind firewalls that you can"t control, this method will allow you to access SSH on your Raspberry Pi by installing client-side software to connect to a logmein hamachi network.įirst, create a account if you haven"t already, and from there, create a network (on the left). If you don"t understand anything, post and I"ll attempt to clarify. ![]() I can access all the shared resources but can not access the web app.*Disclaimer* I only just figured out how to do this, but it seems handy so I"m sharing the method. I get the same error message as before, only this time with the HAMACHI IP address. So I see that the IP address to the computer I have VPN-ed to is 5.14.212.196 and so I try to gain access to the web app by replacing the office LAN's IP with the Hamachi IP (I can only post one hyperlink hence the verbose alternative ) However, when I try to do the same remotely I get the message "Firefox can't establish a connection to the server at 192.168.1.6:8080." While in the office I type in my browser to get access to the web app. I selected a Hub-and-spoke network and made the machine with the web app the hub. I have setup LogMeIN Hamachi and I can connect to an office machine and see shared resources (folders and printers) on that machine. I am trying to remotely access a web application hosted on the office LAN.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |