# You must provide the Drone server address

**URL:** <https://drone.discourse.group/t/you-must-provide-the-drone-server-address/11156>\
**Category:** Drone Support\
**Created:** [October 7, 2020, 11:38am UTC](https://drone.discourse.group/t/you-must-provide-the-drone-server-address/11156 "2020-10-07T11:38:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![softshipper](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/softshipper/32/5585_2.png) [@softshipper](https://drone.discourse.group/u/softshipper)\
**Post date:** [October 7, 2020, 11:38am UTC](https://drone.discourse.group/t/you-must-provide-the-drone-server-address/11156/1 "2020-10-07T11:38:48Z")

</div>

Hi all

I have created the following pipeline:

```auto
---
kind: pipeline
type: docker
name: Play with ssh

steps:
  - name: Promote to STAGE
    image: appleboy/drone-ssh
    settings:
      host: ci.example.io
      username: secret
      password: secret
      port: 22
      script:
        - echo "Welcome SSH"
        - ls -la
        - drone info

trigger:
  branch:
    - master

```

When the pipeline runs, it shows:

```auto
======CMD======
echo "Welcome SSH"
ls -la
drone info
======END======
out: Welcome SSH
out: total 100
out: drwxr-xr-x 15 admin admin 4096 May 21 09:37 .
out: drwxr-xr-x 3 root root 4096 Apr 10 20:21 ..
out: -rw------- 1 admin admin 19418 Oct 7 09:33 .bash_history
out: -rw-r--r-- 1 admin admin 220 Apr 18 2019 .bash_logout
out: -rw-r--r-- 1 admin admin 3727 Apr 10 20:39 .bashrc
out: drwxr-xr-x 3 admin admin 4096 Apr 23 20:00 .cache
out: -rw-r--r-- 1 admin admin 0 Apr 10 20:17 .cloud-locale-test.skip
out: drwx------ 3 admin admin 4096 Apr 16 20:51 .config
out: drwx------ 2 admin admin 4096 May 21 14:22 .docker
out: drwxr-xr-x 2 admin admin 4096 May 5 16:21 downloads
out: drwxr-xr-x 2 admin admin 4096 Oct 4 19:46 drone
out: drwx------ 3 admin admin 4096 Apr 10 20:26 .gnupg
out: drwxr-xr-x 3 admin admin 4096 Apr 23 20:01 go
out: drwx------ 3 admin admin 4096 Apr 10 20:28 .local
out: drwxr-xr-x 4 admin admin 4096 Apr 10 20:43 .m2
out: -rw-r--r-- 1 admin admin 976 Apr 30 20:25 .profile
out: drwxr-xr-x 4 admin admin 4096 Apr 13 20:54 proxy
out: drwxr-xr-x 10 admin admin 4096 Apr 10 20:39 .sdkman
out: drwx------ 2 admin admin 4096 Apr 28 08:53 .ssh
out: drwxr-xr-x 2 admin admin 4096 May 3 13:54 wordpress
out: -rw-r--r-- 1 admin admin 201 Apr 10 20:39 .zshrc
err: Error: you must provide the Drone server address.
2020/10/07 11:07:09 Process exited with status 1

```

Logging into the server and type `drone info` in the terminal, it show the expected information.  
What am I doing wrong with the SSH-Plugin?

Thanks

---

<div class="post-metadata">

**Author:** ![softshipper](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/softshipper/32/5585_2.png) [@softshipper](https://drone.discourse.group/u/softshipper)\
**Post date:** [October 7, 2020, 11:53am UTC](https://drone.discourse.group/t/you-must-provide-the-drone-server-address/11156/2 "2020-10-07T11:53:01Z")

</div>

I tried the following:

```auto
---
kind: pipeline
type: docker
name: Play with ssh

steps:
  - name: Promote to STAGE
    image: appleboy/drone-ssh
    settings:
      host: ci.example.io
      username: secret
      password: secret
      port: 22
      script:
        - export DRONE_SERVER=https://ci.example.io
        - export DRONE_TOKEN=secret
        - echo "Welcome SSH"
        - ls -la
        - drone info

trigger:
  branch:
    - master

```

and it works. I think, maybe do I have to provide `DRONE_SERVER` and `DRONE_TOKEN` in a file?

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [October 7, 2020, 1:45pm UTC](https://drone.discourse.group/t/you-must-provide-the-drone-server-address/11156/3 "2020-10-07T13:45:18Z")

</div>

If you are want to execute the `drone info` command you must provide the server address and token [1]. Your first example fails because this information was not provided. The second example succeeds because this information was provided. The system seems to be working as expected, although perhaps I am missing something …

[1] [https://docs.drone.io/cli/configure/](https://docs.drone.io/cli/configure/)

---

<div class="post-metadata">

**Author:** ![softshipper](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/softshipper/32/5585_2.png) [@softshipper](https://drone.discourse.group/u/softshipper)\
**Post date:** [October 7, 2020, 1:50pm UTC](https://drone.discourse.group/t/you-must-provide-the-drone-server-address/11156/4 "2020-10-07T13:50:29Z")

</div>

> [@Admin user can't login](https://drone.discourse.group/t/admin-user-cant-login/8142/3):
>
> If you are want to execute the `drone info` command you must provide the server address and token

Do I have to provide the export in the pipeline or where do I have to provide it?

I have provided on the server, where Drone runs:

```auto
drone info
User: usertest
Email: test@example.io

```

So I have provide it in the pipeline right?

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [October 7, 2020, 2:02pm UTC](https://drone.discourse.group/t/you-must-provide-the-drone-server-address/11156/5 "2020-10-07T14:02:05Z")

</div>

> [@Admin user can't login](https://drone.discourse.group/t/admin-user-cant-login/8142/4):
>
> Do I have to provide the export in the pipeline or where do I have to provide it?

you would provide as you have done in your previous post:

```plaintext
      script:
        - export DRONE_SERVER=https://ci.example.io
        - export DRONE_TOKEN=secret
        - echo "Welcome SSH"
        - ls -la
        - drone info

```
