# Enable SSH in Routinator

For the next few labs to work, we must enable SSH support within the Routinator container.

From your clab server, connect to the bash shell of Routinator as root:

```
docker exec -it --user root clab-rpki-RPKI sh
```

Download the necessary packages to enable SSH and netcat:

```
apk add openssh
apk add openrc --no-cache
apk add netcat-openbsd
apk add busybox-extras
```

Enable SSHd service:

```
rc-update add sshd
```

Create an rpki user. Use rpki as the password. It will warn you that the password is weak, but still let you use it.

```
adduser rpki
```

Create a redirection to routinator in SSHd config:

```
echo "Subsystem rpki-rtr nc 127.0.0.1 3323" >> /etc/ssh/sshd_config
```

Start the SSHd service:

```
rc-status
touch /run/openrc/softlevel
rc-service sshd start
```
