OliveTin / docs.olivetin.app

Documentation for OliveTin.
https://docs.olivetin.app
GNU Affero General Public License v3.0
2 stars 6 forks source link

Accept SSH host keys: ssh from within container #18

Open fiala-sns opened 2 months ago

fiala-sns commented 2 months ago

Tried to look for this around and did not found nothing so if it is duplicity then I as sorry.

I run into issue with ssh from within OliveTin container to docker host and keep getting error 255. Settings: Debian 12 on RPi5 with docker compose setup.

config.yaml:

actions:  
  - title: Restart Plex
    icon: restart
    shell: ssh user@docker-host 'docker restart plex'
    timeout: 5

No FW, keys copied, ssh from docker host -> localhost (it self) worked but not from OliveTin container. Revelation came when I tried this directly from within container (docker exec -it olivetin sh) and this came up:

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

I confirm it and then every thing started to work. What I suggest is to add this step to action-ssh.adoc somewhere. I am personally new to Linux world so I am not sure if it is me being noob or if it could help somebody.

OliveTin si awesome! :-)

jamesread commented 2 months ago

Heya @fiala-sns , so sorry for not getting back to you sooner - life is really busy at the moment.

Sorry that you're getting this, could you get me a sosreport please? https://docs.olivetin.app/sosreport.html

fiala-sns commented 2 months ago

Hi, no problem at all, thanks for getting back to me. To clarify again, I don't have problem any more. Problem was that I had to confirm ssh connection from within container, and I did not know about this step. Here is my sosreport:

### SOSREPORT START (copy all text to SOSREPORT END)
# Build: 
commit: 362a97c
version: 2024.06.04
date: \"2024-06-04T12:21:11Z\"

# Runtime:
os: linux
osreleaseprettyname: PRETTY_NAME=\"Fedora Linux 38 (Container Image)\"
arch: arm64
incontainer: true
lastbrowseruseragent: \"\"
user: \"\"
uid: \"\"
foundsshkey: /home/olivetin/.ssh/id_rsa
availableversion: none

# Config:
countofactions: 7
countofdashboards: 0
loglevel: INFO
listenaddresssinglehttpfrontend: 0.0.0.0:1337
listenaddresswebui: localhost:1340
listenaddressrestactions: localhost:1338
listenaddressgrpcactions: localhost:1339
timezone: Europe/Prague
timenow: 2024-07-01 14:38:05.488994407 +0200 CEST m=+493108.936877071
configdirectory: /config
webuidirectory: /var/www/olivetin (/var/www/olivetin/)
themesdirectory: /config/custom-webui

### SOSREPORT END (copy all text from SOSREPORT START)
jamesread commented 2 months ago

ahh, sorry, I totally misunderstood your first comment.

Yeah, this is a common issue, I will add it to the docs, but also I want to add more functionality to OliveTin to make SSH configuration easier - I started work on that yesterday.

Thanks for taking the time to comment!