naxgg.blogg.se

Xshell wordpress
Xshell wordpress





And since I haven’t forwarded the 3689 port in my ADSL modem, I have to use an SSH tunnel to access it. Start a tunnel from here (where we write the command) on port 10001, then go to as user fredrik and end the tunnel at a host called localhost on port 3689 over there.Įvery now and then I use the above command to access the Firefly (mt-daapd) web interface running on my server from my laptop when I’m not at home.

xshell wordpress

Since in this case we want the tunnel to end at the same host as we logged in to using the base ssh command, we use ‘localhost’. It refers to the host at the remote side which we want to act as the other end of our tunnel. the machine you’re writing that command on (like the command would say “connect from 10001 on localhost to 3689 on ), but no. Where did that localhost come from? Intuitively you could think that it refers to the local host, i.e. The base command is ssh since I want to set up a tunnel from, say, port 10001 on the local host to port 3689 on the remote host, I need to throw in the -L switch: ssh -L 10001:localhost:3689 is where the confusion sets in. Say that I’d like to open up a tunnel from the local machine to. Now, the basic idea is that you issue a normal ssh command to the remote host as if you would open a remote shell, and just throw in the -L switch to instruct ssh to forward a separate port at the same time. So here’s a note to self on how to do this once and for all.

xshell wordpress

After a few trials and errors I usually get my SSH tunnel up and running, but most of the time I’m not quite sure what I’ve really done. What? Which port goes where? And what’s the bind_address and hostport? If you read the explanation of the switch you’ll probably just become even more confused. The ssh man page is especially unhelpful: -L port:host:hostport Each time, however, I end up reading the man page for the ssh command or googling for ‘ssh tunnel linux’ or something similar, since I never seem to remember how to set up a simple SSH tunnel on the command line. Every once in a while I need to set up a temporary SSH tunnel from one computer to another, possibly via a third one, and can’t be bothered with configuring any of my otherwise frequently used GUI tools ‘SSH Tunnel Manager’ for OS X or ‘SSH Tunnel’ on Win XP.







Xshell wordpress