Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Log in with SSH Key

Zexin Liu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 15, 2019

when I tried to clone a new repository, NOTHING was denied and it worked. But the terminal gave me a warning this:

Permanently added the RSA host key for IP address '###' to the list of known hosts.

I checked my known_hosts in SSH folder and found my IP there. I did finish setting the SSH key but now I can do everything successfully without typing a password or a key something like that. It seems unsafe and I think the correct way should be typing once and no need after that.

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 19, 2019

Hello Zexin and welcome to the Community!

Thank you for providing the steps you took to test and confirm what you’re seeing.

To clarify how this works, this is precisely how SSH is designed to work and be used. When using an SSH key, you have uploaded the keyset to the server to verify your machine you’re using, along with Bitbucket trusting that ssh key. Using the ssh key allows you to communicate to the server without continually having to input a password or phrase to authenticate.

Using the ssh key for authentication reduces the use of usernames and passwords being sent back and forth. Since the ssh key is generated from your machine, and is only trusted from your device to Bitbucket, there is no need to send a phrase or password over the wire to authenticate. While this seems to be less secure since you’re not having to constantly authenticate, it is more secure since your not exposing your credentials constantly when communicating to Bitbucket.

From the documentation, the following is stated: for SSH keys:

  • Is more effective if you push and pull from Bitbucket many times a day.
  • Removes the need to enter a password each time you connect.

More on this can be found at SSH Keys.

I hope this clarifies how the SSH key works and authenticates.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events