The authorized_keys2 file must be write/readable only by that user, so run the following command:Ħ. TPVBV0PiuyozVubBixAHaSwYruLNNaGsDmVTZ7B3Eh YwbxTqYB4HTuuCWwDxvE5mFpw4v2li4wcuTzDVk4nPxCq9CQH7zV9izPX9OEpyt9riGV8gahfWZiDz4C9FIVdnw= This should all be on one line.ĭ. Ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBnOUN1xuuC6BcXfvgJAlfSXgXh58ERYLQMfSsl7/3a Paste the public key into the file ~/.ssh/authorized_keys2 like this: ssh directory or authorized_keys2 files do not exist, create them.Ĭ. Log in to the NPS server (if you have already closed the previous SSH session) with the username and password used previously.ī. Select and copy the public key from the puttygen window.Ī. You are free to choose a filename but the extension must be. You can save it in the same location as the public key this should be a location that only you can access and that you do not lose. You are free to choose a filename and extension, but it should be one that allows you to remember the system.į. Select Save public key and save it in a safe location on your computer. You'll need that passphrase to log in to SSH with your new key. Specify a Key passphrase and repeat it under Confirm passphrase.Į. In the Key comment field, you may want to specify your e-mail address. The blue bar progresses as you move the mouse.Īt the conclusion, a private/public key pair has been generated.ĭ. To generate some randomness, move the mouse pointer over the blank area during the key generation. Make sure to select SSH-2 RSA under Type of key to generate and specify 1024 as the Number of bits in a generated key.Ĭ. Start it by double-clicking its executable file located at C:\Program Files\PuTTY\puttygen.exe.ī. Generate a private/public key pairr using puttygen. You can now automate this procedure to streamline access to the NPS server.Ĥ. This was the "normal" way of logging in - with a username and a password. (If this happens again later on, this can mean that another server is now running under the same IP address, or that someone has broken in and changed the key.) When you connect to the server for the first time, a security warning appears.This is because PuTTY does not yet know the server's host key so it is safe to click on Yes. Now you can connect to our SSH server simply by clicking Open. The next time you use PuTTY, you can simply select the appropriate profile from the Saved Sessions. For example, makes it obvious that this profile connects to the NPS host. In the Saved Sessions field, enter a name for the profile. In the Auto-login username field, specify the username with which you want to log in to your NPS server.ĭ. Enter 192.168.4.101 under Host Name (or IP address), enter 22 under Port and select SSH under Protocol.Ĭ. Make sure that Session is selected in the left frame. The PuTTY Configuration dialog box appears.ī. Start PuTTY by double-clicking its executable file. In PuTTY, you can create profiles for connections to your various servers so you do not have to re-enter the settings when you want to connect again.This example creates a profile for the NPS server (192.168.4.101).Ī. Create a Profile With Settings for the NPS server. When the installation is finished, navigate to the folder.Ģ. Choose to install into the folder you created:Ĭ. Run the installer by double-clicking the downloaded file. Create a folder in C:\Program Files called PuTTY.ī. These can be downloaded as individual executables, but this example uses the Windows installer which packages them together. Install PuTTY, PuTTYgen, and Pageant on the Windows system. Using PuTTY in this way allows for other advanced remote connectivity options.ġ. By setting up PuTTY (a SSH client) to automatically login, you are required to enter the passphrase once for the day. If you repeatedly access the terminal for the NPS server, it can be tedious to authenticate to the server each time. If you would like to know how to do this from a UNIX / Linux client, refer to the document referenced below. This document details how to set up automatic SSH login to the Netezza Performance Server from a Windows XP system (Windows 2000 and Vista will also work).
0 Comments
Leave a Reply. |