# Remote Frontend

# Index

- [Index](#index)
- [Remote Frontend](#remote-frontend)
  - [ssh config](#ssh-config)
  - [Forward Frontend](#forward-frontend)
  - [Forward controller and edge-api](#forward-controller-and-edge-api)

# Remote Frontend

to use a real device and run the frontend on your computer, you need to forward the needed ports. or you just forward the frontend of the device.

[[default user]]:
```
admin@ub.edge
Uniberg123!
```

default password and other values are being set here:

https://git.uniberg.com/ub-edge/edge-api/-/blob/master/openwrt/edge-api/files/90-edge-api.sh

## ssh config

add this to ~/.ssh/config

```
Host aws
        User admin
        HostName 35.157.207.77

Host aws_teltonika1
        User root
        ProxyJump aws
        StrictHostKeyChecking no
        UserKnownHostsFile /dev/null
        HostName 192.168.201.21
        LocalForward 8000 127.0.0.1:80
        LocalForward 8080 [::]:8080
        LocalForward 8844 [::]:8844
        ServerAliveInterval 20
```
## Forward Frontend

just ssh into aws_teltonika1 and then go to http://localhost:8000 in your browser.

```
ssh aws_teltonika1
```

## Forward controller and edge-api

just ssh into the host

ports:
- 8080 -> edge-api
- 8844 -> controller