Documentation: filled the last few gaps and cleaned a few things up.
[u/mdw/putty] / doc / gs.but
CommitLineData
2f8d6d43 1\versionid $Id: gs.but,v 1.6 2001/12/06 20:05:39 simon Exp $
8f1529bc 2
e5b0d077 3\C{gs} Getting started with PuTTY
4
388f343b 5This chapter gives a quick guide to the simplest types of
6interactive login session using PuTTY.
7
8\H{gs-insecure} Starting a session
9
10When you start PuTTY, you will see a dialog box. This dialog box
11allows you to control everything PuTTY can do. See \k{config} for
12details of all the things you can control.
13
14You don't usually need to change most of the configuration options.
15To start the simplest kind of session, all you need to do is to
16enter a few basic parameters.
17
d60c975d 18In the \q{Host Name} box, enter the Internet host name of the server
388f343b 19you want to connect to. You should have been told this by the
20provider of your login account.
21
d60c975d 22Now select a login protocol to use, from the \q{Protocol} buttons.
388f343b 23For a login session, you should select Telnet, Rlogin or SSH. See
24\k{which-one} for a description of the differences between the three
25protocols, and advice on which one to use. The fourth protocol,
26\e{Raw}, is not used for interactive login sessions; you would
27usually use this for debugging other Internet services.
28
d60c975d 29When you change the selected protocol, the number in the \q{Port}
388f343b 30box will change. This is normal: it happens because the various
31login services are usually provided on different network ports by
32the server machine. Most servers will use the standard port numbers,
33so you will not need to change the port setting. If your server
34provides login services on a non-standard port, your system
35administrator should have told you which one. (For example, many
36MUDs run Telnet service on a port other than 23.)
37
d60c975d 38Once you have filled in the \q{Host Name}, \q{Protocol}, and
39possibly \q{Port} settings, you are ready to connect. Press the
40\q{Open} button at the bottom of the dialog box, and PuTTY will
388f343b 41begin trying to connect you to the server.
42
2f8d6d43 43\H{gs-hostkey} Verifying the Host Key (SSH only)
388f343b 44
2f8d6d43 45If you are not using the SSH protocol, you can skip this section.
388f343b 46
47If you are using SSH to connect to a server for the first time, you
48will probably see a message looking something like this:
49
717c214c 50\c The server's host key is not cached in the registry. You
51\c have no guarantee that the server is the computer you
52\c think it is.
53\c The server's key fingerprint is:
54\c ssh-rsa 1024 7b:e5:6f:a7:f4:f9:81:62:5c:e3:1f:bf:8b:57:6c:5a
55\c If you trust this host, hit Yes to add the key to
56\c PuTTY's cache and carry on connecting.
57\c If you want to carry on connecting just once, without
58\c adding the key to the cache, hit No.
59\c If you do not trust this host, hit Cancel to abandon the
60\c connection.
388f343b 61
62This is a feature of the SSH protocol. It is designed to protect you
63against a network attack known as \e{spoofing}: secretly redirecting
64your connection to a different computer, so that you send your
65password to the wrong machine. Using this technique, an attacker
66would be able to learn the password that guards your login account,
67and could then log in as if they were you and use the account for
68their own purposes.
69
70To prevent this attack, each server has a unique identifying code,
71called a \e{host key}. These keys are created in a way that prevents
72one server from forging another server's key. So if you connect to a
73server and it sends you a different host key from the one you were
2f8d6d43 74expecting, PuTTY can warn you that the server may have been switched
388f343b 75and that a spoofing attack might be in progress.
76
77PuTTY records the host key for each server you connect to, in the
78Windows Registry. Every time you connect to a server, it checks that
79the host key presented by the server is the same host key as it was
80the last time you connected. If it is not, you will see a warning,
81and you will have the chance to abandon your connection before you
82type any private information (such as a password) into it.
83
84However, when you connect to a server you have not connected to
2f8d6d43 85before, PuTTY has no way of telling whether the host key is the
388f343b 86right one or not. So it gives the warning shown above, and asks you
87whether you want to trust this host key or not.
88
89Whether or not to trust the host key is your choice. If you are
90connecting within a company network, you might feel that all the
91network users are on the same side and spoofing attacks are
92unlikely, so you might choose to trust the key without checking it.
93If you are connecting across a hostile network (such as the
94Internet), you should check with your system administrator, perhaps
95by telephone or in person. (Some modern servers have more than one
96host key. If the system administrator sends you more than one
2f8d6d43 97fingerprint, you should make sure the one PuTTY shows you is on the
388f343b 98list, but it doesn't matter which one it is.)
99
100\# FIXME: this is all very fine but of course in practice the world
101doesn't work that way. Ask the team if they have any good ideas for
102changes to this section!
103
104\H{gs-login} Logging In
105
106After you have connected, and perhaps verified the server's host
107key, you will be asked to log in, probably using a username and a
108password. Your system administrator should have provided you with
109these. Enter the username and the password, and the server should
110grant you access and begin your session. If you have mistyped your
111password, most servers will give you several chances to get it
112right.
113
114If you are using SSH, be careful not to type your username wrongly,
115because you will not have a chance to correct it after you press
2f8d6d43 116Return. This is an unfortunate feature of the SSH protocol: it does
388f343b 117not allow you to make two login attempts using different usernames.
118If you type your username wrongly, you must close PuTTY and start
119again.
120
121If your password is refused but you are sure you have typed it
122correctly, check that Caps Lock is not enabled. Many login servers,
123particularly Unix computers, treat upper case and lower case as
124different when checking your password; so if Caps Lock is on, your
125password will probably be refused.
126
127\H{gs-session} After Logging In
128
129After you log in to the server, what happens next is up to the
130server! Most servers will print some sort of login message and then
131present a prompt, at which you can type commands which the server
132will carry out. Some servers will offer you on-line help; others
133might not. If you are in doubt about what to do next, consult your
134system administrator.
135
136\H{gs-logout} Logging Out
137
138When you have finished your session, you should log out by typing
139the server's own logout command. This might vary between servers; if
140in doubt, try \c{logout} or \c{exit}, or consult a manual or your
141system administrator. When the server processes your logout command,
2f8d6d43 142the PuTTY window should close itself automatically.
388f343b 143
2f8d6d43 144You \e{can} close a PuTTY session using the Close button in the
388f343b 145window border, but this might confuse the server - a bit like
146hanging up a telephone unexpectedly in the middle of a conversation.
147We recommend you do not do this unless the server has stopped
148responding to you and you cannot close the window any other way.