Your command line might then look like:Ĭ:\PuTTY\pageant.exe d:\main.ppk d:\secondary.ppk Pageant can automatically load one or more private keys when it starts up, if you provide them on the Pageant command line. If Pageant is already running, invoking it again with the options below causes actions to be performed with the existing instance, not a new one.ĩ.3.1 Making Pageant automatically load keys on startup If you're starting Pageant from the Windows GUI, you can arrange this by editing the properties of the Windows shortcut that it was started from. Pageant can be made to do things automatically when it starts up, by specifying instructions on its command line. You can apply this to keys you added using the ‘Add Key’ button, or to keys you added remotely using agent forwarding (see section 9.4) it makes no difference. Pageant will remove the key from its memory. If you need to remove a key from Pageant, select that key in the list box, and press the ‘Remove Key’ button. You can also add one from a remote system by using agent forwarding see section 9.4 for details.) (This is not the only way to add a private key to Pageant. If a key is protected by a passphrase, Pageant will ask you to type the passphrase. Pageant will now load the private key(s). If you want to add more than one key at once, you can select multiple files using Shift-click (to select several adjacent files) or Ctrl-click (to select non-adjacent files). Find your private key file in this dialog, and press ‘Open’. Pageant will bring up a file dialog, labelled ‘Select Private Key File’. To add a key to Pageant by reading it out of a local disk file, press the ‘Add Key’ button in the Pageant main window, or alternatively right-click on the Pageant icon in the system tray and select ‘Add Key’ from there. This should be the same fingerprint given by PuTTYgen, and (hopefully) also the same fingerprint shown by remote utilities such as ssh-keygen when applied to your authorized_keys file. Currently, this can be ssh1 (an RSA key for use with the SSH-1 protocol), ssh-rsa (an RSA key for use with the SSH-2 protocol), ssh-dss (a DSA key for use with the SSH-2 protocol), ecdsa-sha2-* (an ECDSA key for use with the SSH-2 protocol), or ssh-ed25519 (an Ed25519 key for use with the SSH-2 protocol). The large list box in the Pageant main window lists the private keys that are currently loaded into Pageant. You can use it to keep track of what keys are currently loaded into Pageant, and to add new ones or remove the existing keys. The Pageant main window appears when you left-click on the Pageant system tray icon, or alternatively right-click and select ‘View Keys’ from the menu. Closing the Pageant main window does not shut down Pageant. When you want to shut down Pageant, click the right button on the Pageant icon in the System tray, and select ‘Exit’ from the menu. See section 4.22.3 and section 3.8.3.9 for more information.) (PuTTY can be configured not to try to use Pageant, but it will try by default. You can now open as many PuTTY sessions as you like without having to type your passphrase again. PuTTY will notice that Pageant is running, retrieve the key automatically from Pageant, and use it to authenticate. Now start PuTTY and open an SSH session to a site that accepts your key. When the key has been loaded, it will appear in the list in the Pageant window. If the key is protected by a passphrase, Pageant will ask you to type the passphrase. To add a key to Pageant, press the ‘Add Key’ button. After you add one or more keys, they will show up in the list box. When you start Pageant, it has no keys, so the list box will be empty. This shows the private keys Pageant is holding. (You can also bring this window up by double-clicking on the Pageant icon.) If you click the Pageant icon with the right mouse button, you will see a menu. It will then sit and do nothing, until you load a private key into it. When you run Pageant, it will put an icon of a computer wearing a hat into the System tray. See chapter 8 to find out how to generate and use one. It holds your private keys in memory, already decoded, so that you can use them often without needing to type a passphrase.īefore you run Pageant, you need to have a private key in *. 9.3.2 Making Pageant run another programĬhapter 9: Using Pageant for authentication.9.3.1 Making Pageant automatically load keys on startup.Chapter 9: Using Pageant for authentication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |