On https://confluence.atlassian.com/bitbucketserverkb/git-operations-fail-permission-denied-publickey-779171755.html, when I run the final "Resolution" steps, I get errors:
ssh -p 7999 -i ~/.ssh/id_rsa -vT git@localhost
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug1: Connecting to localhost [::1] port 7999.
debug1: connect to address ::1 port 7999: Connection refused
debug1: Connecting to localhost [fe80::1%lo0] port 7999.
debug1: connect to address fe80::1%lo0 port 7999: Connection refused
debug1: Connecting to localhost [127.0.0.1] port 7999.
debug1: connect to address 127.0.0.1 port 7999: Connection refused
ssh: connect to host localhost port 7999: Connection refused
But then the article doesn't say what to do if it fails like mine. What can I try to do next?