2

I'm running the docker version of gogs. It is currently working with my SSH key and I want to refresh this key. Is it possible for me to copy the new key I generated into the docker data volume that is supporting the docker configuration files directly, instead of going through the ui?

Ole
  • 41,793
  • 59
  • 191
  • 359

1 Answers1

1

No: as you can see in "routes/user/setting.go", a key is associated to a user.ID.

Just copying the key (with docker cp) would only add the ssh key without registering its link to a user.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250