Documente Academic
Documente Profesional
Documente Cultură
Windows (internal/DESY)
Configuring PuTTY
Open PuTTY. A configuration dialog will pop up. The dialog window is separated into two parts: on the left side you can see the categories and on the right side you can adjust the options for the selected category. First, select the subcategory SSH and Enable compression.
Tunneling/Port Forwarding
Now change to Tunnels. Here you have to insert the remote port you want to forward to a local port at your PC. - The source port is the port on the user machine to which you will address connections that you intend to have tunnelled. In this example the port number 1024 is selected. This port does not have a special meaning. It is chosen, because it is a port that no special application uses. You may choose any other port in between 1024 - 65535. - The destination defines a host and a port to which you want to connect. You have to write down the hostname (in this case adterm.win.desy.de) followed by a colon and the port number. Port 3389 is used for remote desktop connections.
After clicking Add, your PuTTY configuration should look like this:
You can repeat this procedure for as many hosts you want to connect to simultaneously from your PC. Make sure that you dont use the same Source Port twice (see picture above) and that you entered the correct host name in the Destination field just the remote port number always stays 3389.
Now click Open. The configuration window will close and the PuTTY terminal window will open and you should be able to log in to the aforementioned gateway. After the login procedure you can minimize PuTTY. Do not close the window until you want to exit your Remote Desktop session!
You can now click the Connect button to start the Remote Desktop session.
2. Linux
Windows (internal/DESY)
Introduction
In order to establish a secure remote desktop session from Linux to Windows you need an ssh-client (which should be part of every Linux distribution) and rdesktop. If rdesktop is not installed, please download it from http://www.rdesktop.org/ and read the instructions on how to install it properly. Tunneling/Port Forwarding Open a terminal window and type in the following command for a connection to a Windows-PC/-Server inside the DESY network:
ssh username@bastion.desy.de -L 1024:adterm.win.desy.de:3389
Where username has to be replaced with you actual username, bastion.desy.de is the computer youre logging on to connect to DESY, -L 1024 is the local port (this can be any port from 1024 to 65536), adterm.win.desy.de is the computer you want to connect to (for a list of public servers you can connect to, see the appendix) and 3389 is the remote port (the port that the remote desktop protocol uses). After the connection to bastion.desy.de is established and you have logged in, you need to type the following command to open the remote desktop session:
rdesktop -g1280x1024 localhost:1024
Where g10280x1024 is the screen resolution (1024x768 would be another common resolution) and localhost:1024 is the local port your forwarding with the aforementioned ssh command.
3. Mac OS X
Introduction
Windows (internal/DESY)
To connect from Mac OS X to Windows via remote desktop, you need the remote desktop client for Mac OS X. You can download it from Mactopia (http://www.microsoft.com/mac/downloads.mspx). Use StuffIt to expand the .bin file into a .dmg file. The .dmg should now appear on your Desktop as "Remote Desktop Connection".
Tunneling/Port Forwarding
Open a terminal window and type in the following command for a connection to a Windows-PC/-Server inside the DESY network:
ssh username@bastion.desy.de -L 1024:adterm.win.desy.de:3389 adterm.win.desy.de is the computer you want to connect to (for a list of public
Appendix
Here is a list of public Windows-servers and -clusters you can connect to: - admetro.win.desy.de (will be exchanged in the future) - adterm.win.desy.de - mpy24mws1 * - mpy24mafia1 * - mpy24mafia2 *
Access to these servers is restricted. Please contact C. Kluth, M. Marx or B. Poljancewicz for further information.