# How to get SSH access to the ubuntu-phone via Wifi

Login through the terminal app, you will be user 'phablet' (the password is the unlock number)

Enable the SSH service with following command (it remains after re-boot):

```
$ android-gadget-service enable ssh
```

Now fetch your public key to the Phone from some place, for example run:

```
$ wget http://www.unixarea.de/id_rsa.pub  
$ mkdir .ssh  
$ chmod 0700 .ssh  
$ mv id_rsa.pub .ssh/authorized_keys
```

Now you can look up your IP on the phone and use ssh to connect:

```
$ ip addr show wlan0 |  grep inet
```

From your remote workstation use the following command to connect via Wifi to the BQ:

```
$ ssh phablet@IP-addr-from-above-command
```

The SSH session even remans when the device is locked and black; don't know if this is intention that it does not suspend.

see also: <http://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041>

Last updated: Sat Oct 17 13:09:43 CEST 2015


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guru-1.gitbook.io/bq-aquaris-e-4-5-ubuntu-phone/en/chapter1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
