Amazon Web Services - AWS EC2 - Ubuntu 14.04

Generate Public Key for BitBucket or Github

To access different online service you need to generate public key, for example Bitbucket or Github.

# su miko

$ cd /home/miko

$ mkdir .ssh

$ cd .ssh

 

Generate public key:

$ ssh-keygen -t rsa

generate two file: id_rsa and id_rsa.pub

 

Now, copy content id_rsa.pub into bitbucket or github.

$ cat id_rsa.pub

ssh-rsa AAAAB3NzaC1yc2EAAAADAQAklAAABAgDCTD4PCPmh4G5nOV1tTcRisbkjn3fR96mYmv7uFhXGBvwxhzjoxlk2WiA9x0l2sASfqArjWKO9MVyqsRuDRyfoYR0GEoXlby3lzV1ceZIF73Q+njcYi7y7vwuSEWM9SsvkM00GDEQa5UZbAuv+iOmv+P4L66leIdZxTut17Z1x5nTOlJhWW0EVbqtefez2WlRg7psXdO7Bzty7IsTOh8h/Vxd00LzSkBm0uT/UavBILFiF/EOWWqAoS0SHm+kw3ekQjoAvDesTnh4čURnRqWZ1pqZq+qCiVwENlccZn12DC1bfTn6ICSJj168HQYe2veDxqWoha65MzLv+1uuyNzgvCd miko@ip-172-31-17-119

 

At the end your bitbucket access must work:

$ cd /homemiko/com_i-oglasi/ww/public_html

$ git clone git@bitbucket.org:smikod/i-oglasi.git .