Bitbucket shenanigans

Bitbucket app passwords 🙁

Generated completely new TinkerBill-Bitbucket pair of SSH keys and added them to Bitbucket.

Deleted original TinkerBill account from Sourcetree and created new SSH OAuth version using App Password and Connect button – which worked! I think.


admins-iMac-3:~ bill$ cd .ssh
admins-iMac-3:.ssh bill$ ls -al
total 168
drwx------  19 bill  staff   608  2 Apr 18:28 .
drwxr-xr-x+ 34 bill  staff  1088  2 Apr 20:32 ..
-rw-------   1 bill  staff  1876  2 Apr 18:28 TinkerBill-Bitbucket
-rw-------   1 bill  staff  3479  7 Feb 18:30 TinkerBill-Bitbucket-old
-rw-r--r--   1 bill  staff   783  7 Feb 18:30 TinkerBill-Bitbucket-old.pub
-rw-r--r--   1 bill  staff   406  2 Apr 18:28 TinkerBill-Bitbucket.pub
-rw-r--r--@  1 bill  staff   609  2 Apr 16:51 config
-rw-------   1 bill  staff  1766 29 Dec  2015 github_rsa
-rw-r--r--   1 bill  staff   403 29 Dec  2015 github_rsa.pub
-rw-------   1 bill  staff  1876 30 Dec  2020 id_rsa
-rw-r--r--   1 bill  staff   406 30 Dec  2020 id_rsa.pub
-rw-r--r--   1 bill  staff  6187  2 Apr 16:43 known_hosts
-rw-r--r--@  1 bill  staff  6348 26 Sep  2018 known_hosts copy 2.txt
-rw-r--r--@  1 bill  staff  5835 20 Oct  2017 known_hosts copy.txt
-rw-r--r--   1 bill  staff  6187  2 Apr 16:43 known_hosts-e
-rw-------   1 bill  staff  1766 31 Dec  2015 tinkerbill
-rw-r--r--   1 bill  staff   392 31 Dec  2015 tinkerbill.pub
-rw-------   1 bill  staff  1876 30 Dec  2020 tinkerbill1
-rw-r--r--   1 bill  staff   406 30 Dec  2020 tinkerbill1.pub
admins-iMac-3:.ssh bill$ cat config
Host tinkerbill.co.uk
  ForwardAgent yes

Host tinkerbill
  HostName bitbucket.org
  IdentityFile ~/.ssh/tinkerbill

#Host *
#  ForwardAgent yes

# --- Sourcetree Generated ---
Host TinkerBill-Bitbucket
	HostName bitbucket.org
	User TinkerBill
	PreferredAuthentications publickey
#	IdentityFile /Users/bill/.ssh/TinkerBill-Bitbucket
        IdentityFile /Users/bill/.ssh/tinkerbill1
#	UseKeychain yes
#	AddKeysToAgent yes
# ----------------------------


Host *
	ForwardAgent yes
	UseKeychain yes
	AddKeysToAgent yes
        IdentityFile /Users/bill/.ssh/tinkerbill1
	IdentityFile /Users/bill/.ssh/tinkerbill
admins-iMac-3:.ssh bill$ 

How can I permanently add my SSH private key to Keychain so it is automatically available to ssh?

SourceTree SSH options on OS X

Change the remote URL to your repository

Announcement: Bitbucket Cloud account password usage for Git over HTTPS and API ending March 1, 2022

.ssh folder on iMac

NB: dpull and lpull working with this now


admins-iMac-3:~ bill$ cd .ssh
admins-iMac-3:.ssh bill$ ls -al
total 152
drwx------  17 bill  staff   544  4 Apr 12:04 .
drwxr-xr-x+ 34 bill  staff  1088  2 Apr 20:32 ..
-rw-------   1 bill  staff  1876  2 Apr 18:28 TinkerBill-Bitbucket
-rw-r--r--   1 bill  staff   406  2 Apr 18:28 TinkerBill-Bitbucket.pub
-rw-------@  1 bill  staff   608  3 Apr 13:07 config
-rw-------   1 bill  staff  1766 29 Dec  2015 github_rsa
-rw-r--r--   1 bill  staff   403 29 Dec  2015 github_rsa.pub
-rw-------   1 bill  staff  1876 30 Dec  2020 id_rsa
-rw-r--r--   1 bill  staff   406 30 Dec  2020 id_rsa.pub
-rw-r--r--   1 bill  staff  6187  2 Apr 16:43 known_hosts
-rw-r--r--@  1 bill  staff  6348 26 Sep  2018 known_hosts copy 2.txt
-rw-r--r--@  1 bill  staff  5835 20 Oct  2017 known_hosts copy.txt
-rw-r--r--   1 bill  staff  6187  2 Apr 16:43 known_hosts-e
-rw-------   1 bill  staff  1766 31 Dec  2015 tinkerbill
-rw-r--r--   1 bill  staff   392 31 Dec  2015 tinkerbill.pub
-rw-------   1 bill  staff  1876 30 Dec  2020 tinkerbill1
-rw-r--r--   1 bill  staff   406 30 Dec  2020 tinkerbill1.pub

admins-iMac-3:.ssh bill$ cat config
Host tinkerbill.co.uk
  ForwardAgent yes

Host tinkerbill
  HostName bitbucket.org
  IdentityFile ~/.ssh/tinkerbill

#Host *
#  ForwardAgent yes

# --- Sourcetree Generated ---
Host TinkerBill-Bitbucket
	HostName bitbucket.org
	User TinkerBill
	PreferredAuthentications publickey
	IdentityFile /Users/bill/.ssh/TinkerBill-Bitbucket
#       IdentityFile /Users/bill/.ssh/tinkerbill1
#	UseKeychain yes
#	AddKeysToAgent yes
# ----------------------------


Host *
	ForwardAgent yes
	UseKeychain yes
	AddKeysToAgent yes
        IdentityFile /Users/bill/.ssh/tinkerbill1
	IdentityFile /Users/bill/.ssh/tinkerbill

.ssh folder on Krystal

NB: dpull and lpull working with this now


admins-iMac-3:.ssh bill$ ss
Which site?
chaco
[chapelto@poseidon ~]$ cd .ssh
[chapelto@poseidon .ssh]$ ls -al
total 24
drwx------  2 chapelto chapelto  127 Apr  2 15:20 .
drwx--x--x 30 chapelto chapelto 4096 Mar 28 20:20 ..
-rw-r--r--  1 chapelto chapelto  392 Mar 12  2016 authorized_keys
-rw-r--r--  1 chapelto chapelto  392 Mar 12  2016 authorized_keys2
-rw-------  1 chapelto chapelto  124 Apr  3 14:26 config
-rw-r--r--  1 chapelto chapelto 2773 Oct 30  2020 known_hosts
-rw-------  1 chapelto chapelto  392 Mar 12  2016 tinkerbill.pub

[chapelto@poseidon .ssh]$ cat config
Host TinkerBill-Bitbucket
  AddKeysToAgent yes
  IdentityFile ~/.ssh/tinkerbill1
  IdentityFile ~/.ssh/TinkerBill-Bitbucket
[chapelto@poseidon .ssh]$