Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept SSH host keys: ssh from within container #18

Open
fiala-sns opened this issue Jun 26, 2024 · 3 comments
Open

Accept SSH host keys: ssh from within container #18

fiala-sns opened this issue Jun 26, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@fiala-sns
Copy link

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
Copy link
Contributor

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

@jamesread jamesread transferred this issue from OliveTin/docs.olivetin.app Jun 30, 2024
@fiala-sns
Copy link
Author

fiala-sns commented Jul 1, 2024

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
Copy link
Contributor

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!

@jamesread jamesread transferred this issue from OliveTin/OliveTin Jul 2, 2024
@jamesread jamesread changed the title ssh from within container Accept SSH host keys: ssh from within container Jul 2, 2024
@jamesread jamesread added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Development

No branches or pull requests

2 participants