> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect using SSH

> Connect to a Qualcomm Device Cloud session over SSH and set up port forwarding

1. Once the session is created, select **Connect** on the top bar.

2. In the **Private Key File Path** text box, enter the path to the `.pem` file downloaded in the previous step.

   <img src="https://mintcdn.com/qualcomm-prod/ajmq44Q1W0vLtUT4/Tools/Qualcomm-Device-Cloud/_images/qdc/setup-ssh-connection.png?fit=max&auto=format&n=ajmq44Q1W0vLtUT4&q=85&s=7230179472209676db44a2a23ab22169" alt="SSH connection setup in QDC" width="2515" height="1375" data-path="Tools/Qualcomm-Device-Cloud/_images/qdc/setup-ssh-connection.png" />

   <Note>
     The command shown on this screen sets up port forwarding; it does not open an SSH shell or connect you directly to the QDC device. Run this command in your local terminal and keep it running to maintain port forwarding. Proceed to the next steps to obtain the SSH shell command.
   </Note>

3. Select **Next** to obtain the commands to connect to the SSH shell.

4. Copy the commands provided and run them on your host computer.

   <img src="https://mintcdn.com/qualcomm-prod/ajmq44Q1W0vLtUT4/Tools/Qualcomm-Device-Cloud/_images/qdc/setup-ssh-remote-device.png?fit=max&auto=format&n=ajmq44Q1W0vLtUT4&q=85&s=a34ccbaa10bed81b95acd474f999c4c1" alt="SSH remote device setup commands in QDC" width="2512" height="1376" data-path="Tools/Qualcomm-Device-Cloud/_images/qdc/setup-ssh-remote-device.png" />

5. Copy the SSH connection command and run it in your terminal.

   <Note>
     If prompted for a password, enter `oelinux123`.
   </Note>

6. Select **Next** to obtain the commands to enable port forwarding.

   <img src="https://mintcdn.com/qualcomm-prod/ajmq44Q1W0vLtUT4/Tools/Qualcomm-Device-Cloud/_images/qdc/enable-port-forwarding.png?fit=max&auto=format&n=ajmq44Q1W0vLtUT4&q=85&s=4e2bac60cf347895799cbb62bf11dde0" alt="Port forwarding setup in QDC" width="2516" height="1377" data-path="Tools/Qualcomm-Device-Cloud/_images/qdc/enable-port-forwarding.png" />

   The command forwards port 8900. To forward additional ports between your host and the QDC device, extend the command as follows:

   ```shell theme={null}
   ssh -i -L 8900:sa203658.sa.svc.cluster.local:8900 -L 8901:sa203658.sa.svc.cluster.local:8901 ... -N sshtunnel@ssh.qdc.qualcomm.com
   ```

   <Note>
     The command above is an example only. The command in your device session uses a unique session ID in the format `8900:sa<unique_session_id>.sa.svc.cluster.local:8900`. Edit the command from your own device session as shown above.
   </Note>
