Difference between revisions of "PuTTY"

From PrattWiki
Jump to navigation Jump to search
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Software
+
PuTTY is a telnet and SSH program for Windows and Unix machines.  '''Note:''' From Fall 2014 forward, Duke students using Windows machines are going to be pointed to [[MobaXterm]] instead of PuTTY to connect with Teer machines or Linux-based [[VCL]] sessions.
|name=PuTTY
 
|byline=""
 
|image=
 
|caption=
 
|version=0.60
 
|dlocation=[http://www.oit.duke.edu/comp-print/software/license/detail.php?id=7 OIT]
 
|cost = free
 
|manufacturer=
 
|webpage=[http://www.chiark.greenend.org.uk/~sgtatham/putty/ link]
 
|label_color=
 
|value_color=
 
|update=8/19/2012
 
|}}
 
 
 
PuTTY is a telnet and SSH program for Windows and Unix machines.   
 
 
 
== Installation ==
 
To install PuTTY for Windows, simply download the package from the OIT web site and run the executable.  When complete, the installer will show you the <code>READ ME</code> file that comes with the program.
 
Because of the frequency with which you are likely to use PuTTY, you will likely want to create a quick-launch icon for it as well as a desktop icon.
 
 
 
== Use ==
 
=== First Time ===
 
To use PuTTY for Windows, start the PuTTY program.  You will then get to a PuTTY Configuration screen.  For the '''Host Name''', type in the name of your favorite OIT machine (<code>teer</code>, followed by an appropriate number, followed by <code>.oit.duke.edu</code>; for example, <code>teer17.oit.duke.edu</code>).  The available linux computers at Duke are:
 
*Teer: teer##.oit.duke.edu (## = 01 to 45)
 
Note - as of Fall, 2011, the Teer machines 1-9 use a two digit number (i.e. 01 through 09) while the Hudson machines have been removed. In other words, use:
 
*teer04.oit.duke.edu
 
 
 
The '''Connection Type''' should already be set to '''SSH''' and the '''Port''' set to 22. 
 
 
 
Next, go to the '''Connection''' category in the navigation list at left, open the '''SSH''' option, and click '''X11''' (for version 0.6) or '''Tunnels''' (for version 0.56, as there is no '''X11''').  Make sure the '''Enable X11 forwarding''' box is checked.
 
 
 
=== Saving Sessions for Later ===
 
Now the basics are set for the session.  There are several other options you can set for your terminal session.  When you run PuTTY, these will appear on the left side of the Configuration window.  The most common configuration options to set are in the '''Session''' and '''Window-Colours''' sections.  You can enter the information into the various locations and then go back to the '''Session''' window. 
 
 
 
Give a (meaningful) name for this configuration to the '''Saved Sessions''' block and hit the '''Save''' button.  The session will now be listed along with the '''Default Settings''' and any other configuration you have saved.  To reload the configuration, click on its name and hit the '''Load''' button.  To connect using a particular configuration, just double-click on its name.
 
 
 
=== Connecting ===
 
Note that if you have connected to this machine before, the terminal window will open.  If not, you will get a '''Security Alert''' message.  Unless you believe there has been a security problem, you can click '''Yes''' to both add the host to your list of approved hosts and continue on the the terminal window.
 
 
 
Next, provide your NET ID and password.  If you are able to connect, you should now be at the prompt and in your home directory.  You can now issue [[UNIX]] commands to the remote machine via your terminal window.  Whenever you are finished, type <code>exit</code> and the window will close. 
 
 
 
 
 
=== Allowing Graphics ===
 
The PuTTY program by itself cannot handle graphics sent from a remote computer.  To allow the remote machine to open windows on your computer, see the information on [[X-Win 32]].  Note that setting PuTTY to '''Enable port forwarding''' gets rid of the requirement to set the display environment.  You just have to make sure X-Win 32 is running and that the remote computer you are using is allowed to send graphics to your computer.
 
 
 
== Troubleshooting ==
 
=== Xauthority file locking ===
 
If xterm will not work and if the error is something about "error in locking authority file" type the following in the terminal window:
 
 
 
<source lang="text">
 
cd
 
rm -i .Xauth*
 
</source> and say '''y''' to anything starting with the letters .Xauth.  Then,
 
* Quit PuTTY
 
* Start PuTTY
 
* Load a session (do not double click)
 
* Pick a different teer machine in the host address
 
* Click the Open box
 
* Log in
 
* Type xterm
 
Most likely, the next time through the computer you are connecting to will tell you that it is creating a new authority file - that's great!
 
 
 
== Questions ==
 
{{Questions}}
 
 
 
== External Links ==
 
 
 
== References ==
 
<references />
 
 
 
[[Category:ECE 382]]
 
[[Category:EGR 103]]
 
[[Category:ME 125]]
 
 
 
[[Category:Semester Update]]
 

Latest revision as of 21:20, 18 August 2017

PuTTY is a telnet and SSH program for Windows and Unix machines. Note: From Fall 2014 forward, Duke students using Windows machines are going to be pointed to MobaXterm instead of PuTTY to connect with Teer machines or Linux-based VCL sessions.