I have two computers. One at home and one at my office.
Somehow, long ago, I got SSH setup at home. So I can push/pull from all my repositories using SSH.
At my office, I always have to enter my password. I have tried different ways to setup SSH at my office, but it never works.
At work, do I need to setup a new user ID and connect that to my repositories with its own SSH? Do I need to copy the SSH file from home to my work computer?
Hello @mk_street,
You can go with either of the options you mentioned:
From security perspective I'd recommend to use different keys so that your private SSH key is never copied around, and so that you can rotate these keys independently when needed.
I always have to enter my password.
This really depends on how you configured your SSH key and agent. If you meant you have to enter your Bitbucket account password, not SSH key password, then check clone URL in your local copy of the repository – it is probably HTTPS, not SSH and hence is using HTTP authentication.
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
Hello and thank you very much.
I got it working. I think the key step I was missing was changing the URL in
git config --local --edit to the SSH value. It still had the HTTPS value.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.