git-server-docker
git-server-docker copied to clipboard
What is the user@host?
This might be a stupid question but
Copy them to keys folder:
- From host: $ cp ~/.ssh/id_rsa.pub ~/git-server/keys
- From remote: $ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys
You need restart the container when keys are updated:
$ docker restart <container-id>
What is the user@host here? I'm guessing it relates to the localhost? and the hostname?
Thanks,
Hi darewreck54!
There are no stupid questions! :)
It is the machine where you run Docker. If you are working in localhost it is not necessary this step. It is necessary only if you work with Docker in remote host, in this case 'host' refers to it IP address or domain name.
I hope it can help you!
Best regards!