# SSH

If you are running the OnePub CLI tooling over an ssh connection then the `onepub login` command won't work.

Instead, you need to export the OnePub authentication Token from your PC and import it into the ssh session.

Exit your ssh session and run:

```bash
onepub login
onepub export
```

Note: you only need to run onepub login if you are not currently logged in.

Restart your ssh session and run:

```bash
onepub import --ask
```

When prompted for the ONEPUB\_TOKEN, enter the token displayed when you ran the `onepub export` command.

You are now logged in to OnePub on the remote server.
