Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # $1: e-mail address (please use like "myname@domain.it")
- #
- # Dependencies:
- # sudo apt install xclip
- # sudo apt update && sudo apt install openssh-client
- #
- ps -auxc | grep ssh-agent
- eval $(ssh-agent)
- cd ~
- ssh-keygen -t ed25519 -b 4096 -C $1 -f ssh-bitbucket
- ssh-add ~/ssh-bitbucket
- mkdir ~/.ssh/
- mv ~/ssh-bitbucket ~/ssh-bitbucket.pub ~/.ssh/
- echo "Host bitbucket.org
- AddKeysToAgent yes
- IdentityFile ~/.ssh/ssh-bitbucket" > ~/.ssh/config
- cat ~/.ssh/ssh-bitbucket.pub | xclip -selection clipboard
- echo "Now connect to https://bitbucket.org/account/settings/ssh-keys/, press 'Add key' and paste in the 'Key' field"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement