# Upload Public SSH Key

Your Dining Reservations End-to-End integration requires daily feed uploads to
Secure File Transfer Protocol (SFTP) dropboxes. Google hosts the following SFTP
dropboxes for partners to upload daily feed to it. The dropboxes utilize SSH to
secure the connection, and require a SSH public and private key pair to
authenticate the connection.

After you generate, paste the public key in the **Upload Public SSH Key**
field of [Setup](https://actionscenter.google.com/home) milestone.

### Create your SSH key

Generation of a key pair depends on the platform of your organization. Here're
the steps to create key pair for different platforms:

#### Windows platform

1. Download and run a terminal emulator and network file transfer application for Windows. PuTTy is a free and open source option which you can download from [putty.org](http://putty.org).
2. In the **Parameters** section at the bottom of the page, select **RSA**.
3. Click **Generate**.
4. Hold the cursor over the blank area as per the instruction, until PuTTYgen generates the key pair.
5. PuTTYgen replaces the blank area with a series of boxes, one of which shows the public key.
6. In the key comment box, add the email address to which you want to get notifications.
7. Add the address to the end of any text that already appears in the box. Don't change the text in the other boxes.
8. Click **Save public key**.
9. Save the public key with the name `id-rsa` in the following folder:

   `C:\Documents` and `Settings\username\.ssh`, where `username` is your Windows
   username.
10. Click **Save private key**.

11. Save the private key with the name `id-rsa.ppk` in the same folder.

12. Copy the content of the public key box on the clipboard and paste it into
    the OpenSSH `authorized_keys` file.

13. Make sure to copy the entire content, that starts with `ssh-rsa` and ends
    with the email address you entered at step 5.

14. Close PuTTYgen.

15. Paste the public key into a text editor, remove the line breaks, and recopy
    the full text to the clipboard.

16. Paste the public key in the **Upload Public SSH Key** field of
    [Setup](https://actionscenter.google.com/home) milestone.

17. Click **Submit**.

#### Mac OS or Linux platform

1. Open a terminal window.
2. Enter this command line: `ssh-keygen -t rsa`.
3. Select the default values for all options.

   This command generates two SSH key files, `id_rsa` and `id_rsa.pub`, in the
   directory home/username/.ssh, where `username` is your username.
4. Open `id_rsa.pub` file in a plaintext editor.

5. Select all the text and copy it.

   > [!NOTE]
   > **Note:** Verify that there are no line breaks in the file.

6. Paste the public key in the **Upload Public SSH Key** field of
   [Setup](https://actionscenter.google.com/home) milestone.

7. Click **Submit**.

This pair of keys is used to securely sign in to the Google-provided SFTP
dropboxes. The public key has the following format:

    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCXsM9ycbHV6E6t2L+B4p/uYHn9Q0jmu5gUXMYnFnnf4l39xrznfDo8KCASzRrqUkRnuzrno059CvZVzcljkbwWLzKKoE1EwbzHL3nYahMB4MdYNWhBbHbB+ybq6RNO7hkoKDBIQCfqQDY0FEB6sV3d3F1WYl0bAMjp15yyZJzMKa/rRnZKWetHlcL1X+gFWmW2hQ93foPD463gb58/25GujjsS/tzjngw7UJMVkm08U1QEY3z3DE/R++7ovJozTCzH0CTNDN0AH3/oSC3dmG+yDh3ZXFATjWjyPXJSOziNrp9TXgJhlqSmoHcPvpotMVjx21kIZ+T+SusQmnG+hK+L user@yourdomain.com

> [!IMPORTANT]
> **Important:** Don't include new line breaks in the key.

> [!IMPORTANT]
> **Key Point:** Keep track of your public and private key. You need to provide the public key to Google in some of the later steps.

> [!NOTE]
> **Note:** Most Actions Center partners prefer to use the same public and private key pair across all feeds. If you want to use a different key pair for each feed or for each environment, you must change your SSH key after the initial setup steps are completed, within the [Feed configuration](https://partnerdash.google.com/apps/reservewithgoogle/configuration/feeds?env=sandbox) page of the partner portal. Refer to the [Feeds](https://developers.google.com/actions-center/verticals/reservations/e2e/partner-portal/testing/feeds) to learn how to change your keys.