After I remove my old ssh key and added new key to bitbucket I cant pull/push or clone from/to bitbucket.
ssh-add -l
shows the added key
After executing ssh -vT [email protected]
gets the following output and it waits indefinetly
OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to bitbucket.org [2406:da00:ff00::22c0:3470] port 22
2
Answers
Just check your ssh config.
You can specify which privatekey to use for which host.
See also here
Check if the firewall is the issue, blocking any egress SSH query.
Or disable (for testing) the IPTables firewall
Try and disable (temporarily, for testing) IPV6.