Puddinq.com sharing knowledge
';

Adding key from server to Bitbucket or Github

Adding key from server to Bitbucket or Github

  1. First you connect to your server (ssh)
  2. Run ssh-keygen in the account you want to generate keys for
  3. Enter the questions (set nothing)
  4. View .ssh/id_rsa
  5. Copy the contents
  6. Add them to your Bitbucket or Github account

$ ssh [email protected]
[email protected]'s password:
[email protected]:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/var/services/homes/username/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/services/homes/username/.ssh/id_rsa.
Your public key has been saved in /var/services/homes/username/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:JvAD3zkQWHN/oqgqJyoK+XvvscuSAeA/voQECg1VcIM [email protected]
The key's randomart image is:
+---[RSA 2048]----+
|..o++o+ .        |
|.oE... + .       |
|+.. o .   o .    |
|+..  = + o o     |
|....  * S        |
|...o.. + .       |
|o...oo.          |
|=.oo+. o         |
|*+++.+*.         |
+----[SHA256]-----+
[email protected]:~$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2E00000000000000000000nHNTHwm7rK4sZbqDZOEbQ8fw0GgQzBGQj6e
9IvHWAV4F1GZ5WZvZSojZcrV/wH1pKU60qa3D9wZRETMBJHee6ou/WxNzjjcZbwkmkNRzmIzBfyfFF
tXjGo9u0ZRtW/H2NQTRKXTcgT7Blsd1eq7eokasJ2lIUa8mKTqfQm1oV0mHsn1FPxBUSugWn8JlHes
9AcZrYco2EhU5XUVJSDCEpN8tcfZqmWj/ZLKufgzUkBHxFIwru6fBX1NZYev1yzAtlvh5uCxljt9y1
a1SQYnA6ICRgf4yQdr8caESDqiI3Z8zJHBM2lm4xu2RJaTJTiAv2OfHALcAo0/if3NMrp [email protected]
[email protected]:~$
  • Post on how to do this on a local machine: link
  • Post on how to use a key file in FileZilla: link