zokugun / vscode-sync-settings

Easily synchronize your settings
MIT License
140 stars 12 forks source link

how to auto sync without promting for the password everytime #73

Open niamotullah opened 2 hours ago

niamotullah commented 2 hours ago

i've syncing to a github repo through ssh whenever cron tasks is syncing, asks for pass-keys. Is there any way around so it does not asks for pass-keys everytime while syncing through ssh or https?

     "syncSettings.crons": {
         // "review": "0 * * * *",      // every hour
         "download": "0 8 * * *", // at 8AM, every day
         "upload": "0 * * * *" // every hour
     },
profile: flutter 

# sync on remote git
repository:
  type: git
  # url of the remote git repository to sync with, required
  url: git@github.com:niamotullah/vscode_sync.git
  # branch to sync on, optional (set to `master` by default)
  branch: vscode
daiyam commented 2 hours ago

The extension uses the git command of your system. To avoid any prompting, ssh need to be able to connect to git@github.com. The command ssh -Tv git@github.com will test that out. If you have the error git@github.com: Permission denied (publickey)., you need to have your public key added (with the command ssh-add).