Login with yous STRW username and password combination. You will be presented with a login screen to the graphical enviroment of hostname. It will ask you for the password you have given in section 5. Then, bring up your VNC viewer and, for the VNC server that you want to connect to, type “localhost:port”, where “port” is the port you're forwarding. Verify that this display number corresponds with the one use have defined in the tunnel. Once logged in you need to start a vncserver on the remote machine. To use this tunnel, log into your machine with Putty. All you have to do is click on “Session” at the top left of the “Category:” box, then click on the “Save” button, and you have a saved session!ĥ. Click the “Add” button, and you should see the new tunnel “L5901 :5901” in the “Forwarded Ports:” box.Ĥ. Since the “Destination” box is from the point of view of the computer you're connecting to, you have to put can put there any inside machine that has X11 access, then a colon “:”, then the port, i.e. Finally, in the “Destination” text box below that, you'll put where that port should be forwarded. Most of the time you are using display number :1, so you put in the number 5901 (other display numbers :N correspond to porrt number 590N). Normally you are using display number :0 on you local machine, but we are going to use another display number as :0 is usually not available for tunneling. Here you will input the port that you wish to tunnel. Open PuTTY and ensure Session is selected on the left menu. Use the following steps to create an SSH tunnel using PuTTY: Create or load a session. If you aren't familiar with PuTTY, see the PuTTY documentation. Then, on the right at the bottom, you'll see the “Source Port” text box. PuTTY is a graphical SSH client for Windows. On the left, under “Category”, you'll see “Tunnels” as the second from the bottom. Next we need to tell PuTTY how we want to tunnel. Now, so far all we've done is created a session that we could use to log in and use the shell prompt. Notice that I have typed in the hostname in the Host Name field, that I've selected the SSH protocol radio button, and that I've given the session a name that I will be saving to. When PuTTY first starts up, you see the sessions screen you need to type in the information for the computer with which you wish to connect. Setup PuTTY: First, start up the program. Here is a quick step through to get the tunneling up and running:ġ. It is possible to run a similar setup when the outside machine is a Windows based OS. This means that all local X11 requests are translated by ssh on both sides of the connection to, what is called, a tunnel in the ssh protocol. Normally, when using ssh from a Unix machine (outside) to a local Linux box (inside) will automatically setup X11-forwarding through a tunneling mechanism. Now save this profile (ie- work-webserver) and when you want to connect to it load it and click connected it should log you into the office web server after it logs into the jumpbox silently.Our firewall prohibits direct X-Windows connection between outside and inside machines. You then want to go to Connection -> Data -> Proxy and set the Proxy Type to local and set the Telnet command or local-proxy-command to plink -load work-jumpbox -nc %host:%port\n (replace work-jumpbox with whatever you called your previous profile for the work linux box. Set this profile up with the correct host name/IP address and port of the webserver in the office. With this setup you now want to setup a second profile for the box behind the work jumpbox. Choose an open port on your local machine (ie. The following command creates this SSH tunnel via the Jump host (you will be prompted for the users password): ssh -v -N appusrappserver -J myusrjumphost -L 1521:dbserver:1521. Under SSH->Tunnels, you will now create a tunnel through the EC2 machine to the RDS machine: Source port. Check the box marked Allow Agent Forwarding. Now save this profile and make note of the name you call it (ie- work-jumpbox). Select the PPK file as the private key for authentication. Then under Connection -> SSH -> Auth be sure that Allow agent forwarding is checked. You'll want to be sure under Connection -> Data that you set your Auto-login username. That said here is the steps to take.įirst, create a Putty connection profile for your work Linux box that you can reach from home. I would very much recommend setting up an SSH identity key and installing it on the boxes that you are connecting to and use the Putty Agent (pagent.exe) key forwarding agent. This is very possible with Putty though not as easy as with OpenSSH on a Linux machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |