D
D
drtvader2016-05-13 19:41:21
git
drtvader, 2016-05-13 19:41:21

How to connect via SSH to different bitbucket accounts from one PC?

Hey! There is one PC and 2 accounts on bitbucket (one work, the other personal). So, how to generate the correct keys? The guides that I found are calculated, as I understand it, just for different git systems.
What do I need to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2016-05-13
@drtvader

It can be configured to use different keys for different hosts.
You need to read about $HOME/.ssh/config

host 127.0.0.1
  User saboteur
  IdentityFile с:\my_id1.rsa

host 127.0.0.2
  User dart_vader
  IdentityFile с:\my_id2.rsa

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question