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. Create a batch file with your individual ssh-call and you're done.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). Now you should be able to simply SSH into your server by calling without entering a password. So you have to do the copy and paste stuff on your own.) Set permissions of 'authorized_keys' file to '600'. Copy the contents of 'id_rsa.pub' into this file (unfortunately 'ssh-copy-id' isn't available yet for Windows. Inside the '.ssh' directory create a simple text file called 'authorized_keys'. On server side create a '.shh' directory within your user's home directory. Two files will be generated inside 'c:\Users\your_user\.shh\': 'id_rsa' (private key) and 'id_rsa.pub ' (public key). Important: don't secure the ssh keys with a password (simply press if you're asked for a password, otherwise you'll be asked for the SSH-Key password every time you try to SSH). The trick is to generate a SSH Key pair (private and public) on client side (Windows machine) calling 'ssh-keygen'.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |