This command creates the SOCKS proxy we'll use later. D: This sets up a dynamic application level forwarding service and 1080 is the port it will listen on. tmp/sshtunnel is the full path to the socket file this command is creating. This sets up a special kind of file (called a socket) that will allow us to enter a command later to gracefully end the SSH tunnel without having to kill the connection. S: This is used in conjunction with the -M command. We're doing this so we can easily enter a command later to gracefully end the SSH tunnel without having to kill the connection. N: This tells the SSH process to not execute any commands on the remote server (we are only forwarding traffic through the remote server). f: This forks the process into the background so you don't have to keep the terminal window open to maintain the SSH tunnel. If you want to understand what this command is doing, read on, otherwise skip to step 6. Replace 22 at the end of the line above with whatever port your remote server accepts SSH connections on (22 is the default). Replace with the hostname or IP address of your remote server. Replace USER above with the username of the user on the remote server you are logging in as, this could be "root" but it is generally safer to use an unprivileged user instead. Type the following into the terminal window:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |