Home > Software engineering >  Can't Access (Clone/Push/Pull) to Bitbucket after adding new ssh key
Can't Access (Clone/Push/Pull) to Bitbucket after adding new ssh key

Time:10-18

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

CodePudding user response:

Just check your ssh config.

You can specify which privatekey to use for which host.

See also here

CodePudding user response:

Check if the firewall is the issue, blocking any egress SSH query.

sudo ufw enable OpenSSH

Or disable (for testing) the IPTables firewall

systemctl status firewalld

Try and disable (temporarily, for testing) IPV6.

  • Related