xpipe-io / xpipe

Your entire server infrastructure at your fingertips
https://xpipe.io
Apache License 2.0
3.06k stars 82 forks source link

Existing Connections on ssh user config #248

Closed meska closed 4 months ago

meska commented 4 months ago

Hello, I have many ssh connections configured on ~/.ssh/config, xPipe founds them and when I move one or more to my xPipe tree are these copied or only linked? Because Enabling GitHub sync, only the tree is synched, not the connections inside.

ghost commented 4 months ago

You could have the file synchronized via the Vault. Then simply select the file from XPipe data directory. ssh_config

Hope this will help you.

meska commented 4 months ago

I can try it , but ssh_config was already synchronised ( via Syncthing ) and on the same place on both machines.

crschnick commented 4 months ago

Yeah I think the problem here is that xpipe does not automatically sync any config connections in git as long as the config file itself is also not managed by xpipe via git.

I guess in most cases this is the correct behavior as it is fairly unlikely that the config file exists on the other systems at exactly the same location. In your case it's a little bit unfortunate though. You can try adding the config file to the xpipe git repository though.

meska commented 4 months ago

Ok, if I do manually I have the config file location option, but xPipe already added all the connections ( I have many ) automatically and I can move them around the connection tree but there is no option to sync.

image
crschnick commented 4 months ago

So you have put the ssh config file into the git repository but your individual convict connections are not synchronized? Because that should happen automatically, there is no explicit option to enable this

meska commented 4 months ago

So this is what I did:

It would probably be useful to show a warning that when I move from ssh config, git synchronisation should be activated first.

Another little problem ( I think because both computers are always on ) is that there is no option force a merge.

image
crschnick commented 4 months ago

Oh yeah the categories, or as you refer to them as branches, need to be designated as shared. If you right click them, there should be an option to add them to the git repository.

The warning that git synchronization should be enabled first as a good point, I can add that.

The force merge problem is the same thing with the language, there is an option to force merge, about that assumes that your good client is in english. I will fix that in the next release

meska commented 4 months ago

Oh yeah the categories, or as you refer to them as branches, need to be designated as shared. If you right click them, there should be an option to add them to the git repository.

yes, the categories were set as shared, in fact they synchronised, but empty :)

The warning that git synchronization should be enabled first as a good point, I can add that.

The force merge problem is the same thing with the language, there is an option to force merge, about that assumes that your good client is in english. I will fix that in the next release

Great, not a blocking problem, if you need more info or logs, I am at your disposal.

ghost commented 4 months ago

Take a look at release version 9.2: https://github.com/xpipe-io/xpipe/releases/tag/9.2 The first original issue is marked as "works as intended", and the second is "fixed in the next release".

Feel free to open another issue, or reopen this one if you need further help.