-
-
Notifications
You must be signed in to change notification settings - Fork 865
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
Data source sync fails with ssh with netbox-docker #1061
Comments
According to the documentation of |
Thanks! I think the current default user doesn't have home directory. What would be the ideal way to store the ssh config, ssh key and known hosts file? I think the easiest way would be to define the home directory for that user but there might be some other solutions for this as well
|
I think we could change the default user to have a home directory in @cimnine What do you think? |
This might be related to this issue: netbox-community/netbox#13573 |
I've run in to the lack of $HOME too. I'm working around it by bin mounting /nonexistent and using it as a home dir but that's not ideal so a normal home dir would be a good start I think. It would be easy to mount private keys in to it. Regarding StrictHostKeyChecking, it would be great if you could pass command line options for the ssh client to disable it (or accept-new) for chosen data sources. Managing known_hosts files could get quite hard. |
@tobiasge any chance you could progress with just giving the unit user a home, such as /opt/unit/home as you suggested. Happy to mount config files in there for the time being, will need to manage an ssh key anyway. |
Current Behavior
I added the the needed SSH related configuration to the container (ssh config, ssh known hosts and ssh private key). I added git data source to netbox via GUI with url and try to sync the data. The sync fails with error
ERROR:root:Fetching remote data failed (FileNotFoundError): [Errno 2] No such file or directory: 'ssh'
and data source is not synced.I think there are 2 options for solving this; either add openssh-client to the netbox-docker image or make changes on the netbox code to support ssh data sync with paramiko.
Expected Behavior
I expected the data source to sync.
Docker Compose Version
Docker Compose version v2.4.1
Docker Version
The git Revision
22486fe
The git Status
Startup Command
docker compose up
NetBox Logs
Content of docker-compose.override.yml
The text was updated successfully, but these errors were encountered: