SSH access
Directly accessing your app via SSH can be beneficial, especially for debugging.
In the auterion-app.yml file, enable SSH port forwarding by adding
ssh: true
...auterion-app.yml...
services:
<my-service-name>:
build: <location of Dockerfile>
ssh: true
Make sure your app image contains
openssh-server
. If you are using the auterion/app-base:v2
base image, you already have openssh-server
Create an SSH key-pair to use to access your app. You can do this from the command line
ssh-keygen -t ed25519 -f my-app-key
In your Dockerfile add your public key to the authorized keys. The public key can be found in my-app-key.pub.
RUN echo "ssh-ed25519 ....." >> /root/.ssh/authorized_keys
Change the command in your Dockerfile to make sure to launch sshd with your app like so
CMD /usr/sbin/sshd && ./my-app
Now build and install the app. You can then use
auterion-cli app list
to find out the SSH port you got assigned for your app.
You can then SSH into your app withssh -i my-app-key -p <port from auterion-cli app list> [email protected]
Last modified 30d ago