retwei.blogg.se

How to use ssh for mac
How to use ssh for mac











  1. #HOW TO USE SSH FOR MAC FULL#
  2. #HOW TO USE SSH FOR MAC PASSWORD#

Paste the copied public key into the SSH Key field.īitbucket sends you an email to confirm the addition of the key. It doesn't matter whether or not you include the email address.Įnter a Label for your new key, for example, Default public key.

how to use ssh for mac

You may see an email address on the last line.

how to use ssh for mac

ssh/id_rsa.pub file (or whatever you named the public key file) and copy its contents. If you've already added keys, you'll see them on this page. Add the public key to your Account settingsįrom Bitbucket, choose Personal settings from your avatar in the lower left.Ĭlick SSH keys.

#HOW TO USE SSH FOR MAC PASSWORD#

If you don't want to type your password each time you use the key, you'll need to add it to the ssh-agent.Įnter ssh-add followed by the path to the private key file: The command displays two files, one for the public key (for example id_rsa.pub) and one for the private key (for example, id_rsa). You should see something like the following: Your public key has been saved in /c/Users/emmap1/.ssh/id_rsa.pub. Your identification has been saved in /c/Users/emmap1/.ssh/id_rsa. The whole interaction looks similar to this:Įnter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa):Ĭreated directory '/c/Users/emmap1/.ssh'.Įnter passphrase (empty for no passphrase): The command creates your default identity with its public and private keys. Enter and re-enter a passphrase when prompted.

how to use ssh for mac

For example, to create a key called my-new-ssh-key, enter the Windows path, shown here:Įnter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa): c:\Users\emmap1\.ssh\my-new-ssh-keyģ.

#HOW TO USE SSH FOR MAC FULL#

To create a key with a non-default name or path, specify the full path to the key. We recommend keeping the default key name unless you have a reason to change it.













How to use ssh for mac