Keep my ssh config file synchronized between two systems
- 
 Since I move back and forth constantly from my desktop to laptop, I want to keep the ~/.ssh/configfile synchronized between the two systems.I access too many different systems to want to memorize them all. I personally find that using this file to make friendly names based on client and purpose makes it easy. Also tab completion  I only have system info in here, nothing else.  Drop it in my personal folder on Nextcloud and link it? Something else? Any recommendations? Edit: I never tried that above Nextcloud and link suggestion because of expected permission issues. 
  
- 
 Using Nextcloud to sync your config # Store your config in your Nextcloud directory # --preserve=context should copy over the selinux permissions with file to your Nextcloud folder. cp --preserve=context /home/<user>/.ssh/config /home/<user>/Nextcloud/ ln -s /home/<user>/Nextcloud/config /home/<user>/.ssh/config
- 
 This might be overkill for one file but you setup syncthing too. 
 https://syncthing.net/
- 
 @black3dynamite said in Keep my ssh config file synchronized between two systems: This might be overkill for one file but you setup syncthing too. 
 https://syncthing.net/I keep forgetting about this solution. It is not something I personally have a need for, but I know people that could use it. 
- 
 @black3dynamite said in Keep my ssh config file synchronized between two systems: Using Nextcloud to sync your config # Store your config in your Nextcloud directory # --preserve=context should copy over the selinux permissions with file to your Nextcloud folder. cp --preserve=context /home/<user>/.ssh/config /home/<user>/Nextcloud/ ln -s /home/<user>/Nextcloud/config /home/<user>/.ssh/configYeah, I was about to try this. MOstly posted to see about other options in case it has issues. 
- 
 # Use -F option to specify a different config int the default location or other locations. ssh -F /home/<user>/Nextcloud/config <user>@host1Create an alias in your .bashrcfile and the following to avoid typing all that.alias sshf="ssh -F /home/<user>/Nextcloud/config" alias scpf="scp -F /home/<user>/Nextcloud/config" # ssh command sshf <user>@host1 # scp command scpf <filename> <user>@host1:/tmp/And for any reasons you want to ignore the config file you use /dev/nullssh -F /dev/null <user>@host1
- 
 I use git for this type of stuff. I have all of my dotfiles stored in a git repo and synced between systems. 
- 
 @stacksofplates said in Keep my ssh config file synchronized between two systems: I use git for this type of stuff. I have all of my dotfiles stored in a git repo and synced between systems. I thought about that, but then it gets into git triggers and scheduled jobs. 
- 
 @JaredBusch said in Keep my ssh config file synchronized between two systems: @stacksofplates said in Keep my ssh config file synchronized between two systems: I use git for this type of stuff. I have all of my dotfiles stored in a git repo and synced between systems. I thought about that, but then it gets into git triggers and scheduled jobs. I just do it when I open my terminal. It auto downloads when a new window is opened.  


