# Reset SSH password

**URL:** <https://mangoh.discourse.group/t/reset-ssh-password/612>\
**Category:** mangOH Green\
**Created:** [July 3, 2017, 12:24pm UTC](https://mangoh.discourse.group/t/reset-ssh-password/612 "2017-07-03T12:24:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![loic.guillaume](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@loic.guillaume](https://mangoh.discourse.group/u/loic.guillaume)\
**Post date:** [July 3, 2017, 12:24pm UTC](https://mangoh.discourse.group/t/reset-ssh-password/612/1 "2017-07-03T12:24:00Z")

</div>

Hello all,

So I was just introduced to the platform, but I’m struggling to connect myself to the board.

I installed legato without issue, but when I tried to open a connection to the board (through devstudio), it asked me a password. The user guide said that there are no password, but it seems that one has been implemented and nobody can tell me what it is.

Is there a way to reset the board ?

The user guide ain’t giving any information about the serial lines.

Mangoh green / WP8548 / vm kubuntu 16.04 / legato-16.10.3-linux-64bits

Regards,  
Loïc

---

<div class="post-metadata">

**Author:** ![daav](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/daav/32/79_2.png) [@daav](https://mangoh.discourse.group/u/daav)\
**Post date:** [July 4, 2017, 5:20am UTC](https://mangoh.discourse.group/t/reset-ssh-password/612/2 "2017-07-04T05:20:33Z")

</div>

Hi @loic.guillaume

If you have no idea of the password, and if you’re ready to loose all data/apps currently on the device, your last chance is to erase the user partition, in order to recover a fresh root FS (without password for root).

In DS, you can use the recovery wizard  
In CLI on Linux, you can use **swiflash** with the -r option ([https://source.sierrawireless.com/resources/airprime/software/swiflash/](https://source.sierrawireless.com/resources/airprime/software/swiflash/))

But I’m afraid to understand that you’re using a VM?  
In this case, you can’t use the recovery feature (whatever it is from DS or CLI) in the VM, since it needs the direct USB connection to the device.  
That said, you have two choices:

- Install native DS for Windows
- Switch to a native Linux

Hope this will help.

---

<div class="post-metadata">

**Author:** ![loic.guillaume](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@loic.guillaume](https://mangoh.discourse.group/u/loic.guillaume)\
**Post date:** [July 4, 2017, 7:43am UTC](https://mangoh.discourse.group/t/reset-ssh-password/612/3 "2017-07-04T07:43:31Z")

</div>

Thanks ! Very useful procedure.

But this is what I got from the Legato target recovery:

```
[Tue, 4 Jul 2017 09:33:59 +0200] /home/loic/legato/packages/legato.recovery.4.0.6.1.linux-201704190909/resources/swiflash -r -m WP85XX
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode

```

Unfortunately, it seems stuck into “Switching to firmware download mode”.  
And after several minutes it timeout.

I know you said that it requires a direct USB connection, but using the USB parameter of the VM I manage to connect the board and getting this:

```
loic@vbox:~/legato$ ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2

```

For the record, only the mangoh green is connected and if I remove it, the ttyUSB disappear.

Any thought ?

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [July 4, 2017, 3:01pm UTC](https://mangoh.discourse.group/t/reset-ssh-password/612/4 "2017-07-04T15:01:20Z")

</div>

It seems that sometimes the mangOH Green doesn’t go into firmware download mode properly. Try flipping dip switch 7 to the up position and then flip it back to the down position once you get past “switching to firmware download mode”.

---

<div class="post-metadata">

**Author:** ![daav](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/daav/32/79_2.png) [@daav](https://mangoh.discourse.group/u/daav)\
**Post date:** [July 5, 2017, 6:54am UTC](https://mangoh.discourse.group/t/reset-ssh-password/612/5 "2017-07-05T06:54:30Z")

</div>

Hi @loic.guillaume

This is typically the kind of issue you’ll get with a VM.  
Recovery procedure will reset the device to enter into download mode.  
Even if you manage to configure the VM to get the USB connectivity OK at first, this config will be “lost”, or at least doesn’t support the device reset.
