Table of Contents | ||
---|---|---|
|
Introduction
Some EAS development activities require that the developer access an EAS Linux VM from their Windows machine to perform certain tasks, for example, to administer an EAS VM, or to perform database queries. This page describes how to use PuTTY and Secure Shell (SSH) to access an EAS Linux VM from a Windows machine to achieve those ends.
...
Download PuTTY media from https://www.putty.org/, and install it on your Windows machine by following the instructions in the PuTTY Setup Wizard.
Generating Private and Public Keys
There is also online documentation available, for example PuTTY 0.62, for example. .
Generate Private and Public Keys
All of the screenshots that follow are from PuTTY 0.62.
Navigate to "Chapter 8: Using public keys for SSH authentication" of the online documentation, and read "Section 8.2 Using PuTTYgen, the PuTTY key generator" to begin generating the new private and public keys. The screenshots that follow illustrate the key steps in the process.
...
3 Move the mouse over the blank area that is in the Key pane for a few seconds to proceed.
Anchor | ||||
---|---|---|---|---|
|
Tip |
---|
The file names that are used below follow an optional naming convention of starting with the user's initials (in this example "jd" for Jane Doe), followed by an indication of the scope of the key's applicability (in this example "eas" for the Enterprise Addressing System), to account for a given individual possibly having more than one private key.
|
Anchor | ||||
---|---|---|---|---|
|
jd_eas_public_key.txt
) and the private key (jd_eas_private_key.ppk
) somewhere on your Windows machine. It is also worth selecting (right-click, then Select All), and then saving (jd_eas_public_key_paste.txt
), the public key from the first text field that is in the PuTTY Key Generator dialog (jd_eas_public_key_paste.txt
).6 Exit the PuTTY Key Generator dialog.
Anchor | ||||
---|---|---|---|---|
|
jd_eas_public_key_paste.txt
) to the EAS administrator who is fulfilling your request. For an example, see service request SER0159691....
PuTTY can be used to configure and save an SSH session. Navigate to to "Chapter 2: Getting started with PuTTY" and read this short chapter before creating attempting to create an SSH session.
Create an SSH Login Session
Create an SSH login session if you intend to log in to an EAS Linux (target) VM and execute Linux shell commands. The SSH login session in this example will be for the SF DEV WEB VM (San Francisco data center, DEVelopment environment, eas WEB server, Virtual Machine).
The appropriate IP addresses will be provided by an EAS administrator for any sessions that you need to create. Sensitive information has been redacted in the screenshots that follow.
...
2 Under the Session category, enter the IP address of the target VM in the Host Name (or IP address) field, and specify port 2241 in the Port field. Also confirm that the connection type is "SSH".
3 Under "Authentication parameters", browse to the private key file (jd_eas_private_key.ppk
) that was saved in Step 5 above.
4 The remainder of the configuration consists of default values. The following naming convention for the session name should be followed , but if additional configuration is required, then "Chapter 4: Configuring PuTTY" should be consulted.
The following session names should be used to maintain consistency with standard EAS nomenclature. The session name for this example (eas-sf-dev-web) is highlighted in bold font in the table below.
Environment | |||
---|---|---|---|
DEV | QA | PROD | |
San |
Francisco Data Center | eas-sf-dev-db | eas-sf-qa-db | eas-sf-prod-db |
---|---|---|---|
eas-sf-dev-geo | eas-sf-qa-geo | eas-sf-prod-geo | |
eas-sf-dev-web | eas-sf-qa-web | eas-sf-prod-web | |
Disaster Recovery Data Center | eas-dr-prod-db | ||
eas-dr-prod-geo | |||
eas-dr-prod-web |
5 Return to the Session category to save this session. Enter the session name in the Saved Sessions field, and press the "Save" button.
...
6 Before the saved session can be tested, an EAS administrator must place your public key on the target VM, which should have been done in Step 7 above.
7 To test the saved session, select the saved session from the Saved Sessions list, press the "Load" button, and then press the "Open" button.
8 You will be prompted to log in to the target VM. Use the username that was given to you by the EAS administrator, and when prompted a second time, enter the passphrase that was used to create your private key in Step 4 above.
9 Congratulations, you should now be logged in to the target VM!
Create an SSH Tunnel Session
...