# Remote host terminal

When working with a [remote](remote-projects-support.html) project, you may want to open `SSH` to the remote host and execute some commands in the project directory. For this, use the `Tools | Open Remote Host Terminal` action. It opens the current project directory on the remote host if it exists:

![Open Remote Host Terminal](https://resources.jetbrains.com/help/img/idea/2026.2/cl_remote_host_terminal.png)

This action works for both remote [CMake](quick-cmake-tutorial.html) and remote [Makefiles](makefiles-support.html) projects. It takes remote host from the currently selected profile/toolchain, or, if a local one is selected, from the first remote profile/toolchain found in the project.

> **Tip:**
> Since Remote Host Terminal opens the current project directory right away, you can use it to quickly find out the path to your application's executable on the remote host. This is useful, for example, when you set up the Executable in a [Native Application](makefiles-support.html#create-makefile-config) configuration.

