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