# Run SSH terminal

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/llms.txt).

> **TL;DR**
> Add SSH configurations: `Settings | Tools | SSH Configurations`
>
>
>
> Start an SSH session from the main menu: `Tools | Start SSH Session`
>
>
>
> Configure SSH terminal: `Settings | Tools | SSH Terminal`

Use an SSH terminal to run commands on a remote computer from GoLand. For example, you can build or test a Go application using the Go installation on that computer. To transfer project files, configure a [deployment server](https://www.jetbrains.com/help/go/creating-a-remote-server-configuration.html.md).

<a id="prepare"></a>

Procedure: Set up the SSH terminal

1. Make sure the remote computer has an SSH server and that you have an account with access to it.

2. Create an [SSH configuration](https://www.jetbrains.com/help/go/create-ssh-configurations.html.md) with the host, port, username, and authentication method required by the server. Test the connection.

3. Select the remote environment and configure the SSH terminal:

1.

In the Settings dialog ([Settings… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "ShowSettings")), go to `Tools | SSH Terminal`.

2.

In the Connection settings area, select the remote environment:

* Current Vagrant: select this option to have the commands in the SSH Terminal executed on the currently running [Vagrant virtual machine](https://www.jetbrains.com/help/go/vagrant-support.html.md).

* SSH configuration: select this option to have the commands in the SSH Terminal executed on the local or remote Web server accessible through one of the [SSH configurations](https://www.jetbrains.com/help/go/create-ssh-configurations.html.md). * Select SSH configuration on every run: if this option is selected, you will have to choose the desired configuration from the popup, every time you choose `Tools | Start SSH Session` from the main menu. * If the desired SSH configuration does not appear in the list, click the Set up configurations link, and define one in the [SSH Configurations](https://www.jetbrains.com/help/go/settings-tools-ssh-configurations.html.md) page.

To use the same SSH connection each time, select an SSH configuration. To choose a connection whenever you start a session, select Select SSH configuration on every run.

3. From the Default encoding list, select the encoding to use in the SSH terminal.

<a id="launch-ssh-terminal"></a>

Procedure: Launch the SSH terminal

1. Go to `Tools | Start SSH Session…`. If prompted, select the SSH configuration for the remote computer.

2. Run commands in the terminal tab that opens. To end the session, enter `exit`.

<a id="view-ssh-logs"></a>

Procedure: View SSH logs

To troubleshoot an SSH connection, check the [IDE logs](https://www.jetbrains.com/help/go/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html.md#logs-directory). For authentication errors, also check the SSH server logs or ask the server administrator. Their location depends on the server operating system and configuration.

For example, on a Fedora server, run `sudo journalctl -u sshd.service` to view the SSH server logs. These logs can help identify authentication failures and rejected connections.

## See also

### Procedures

[Deployment](https://www.jetbrains.com/help/go/deploying-applications.html.md)

### Reference

[SSH Terminal](https://www.jetbrains.com/help/go/settings-tools-ssh-terminal.html.md) [Deployment](https://www.jetbrains.com/help/go/settings-deployment.html.md)

