SFTP Authorized Keys: Difference between revisions


No edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
=== Step 1: Generate an SFTP Key ===
=== Step 1: Generate an SFTP Key ===


==== On a Mac (Using Terminal) ====
==== On Mac or Linux (Using Terminal) ====


# Open the '''Terminal''' application.  
# Open the '''Terminal''' application.  
Line 12: Line 12:
#* Add a passphrase for extra security (optional)
#* Add a passphrase for extra security (optional)
# This will generate two files:
# This will generate two files:
#* '''<code>keynamehere</code>''': Your private key (keep this secure and private).
#* Your private key (keep this secure and private).
#* '''<code>keynamehere.pub</code>''': Your public key (used for uploading to Bravenet).
#* Your public key (used for uploading to Bravenet).


==== On Windows (Using PuTTY) ====
==== On Windows (Using PuTTY) ====
 
1. Download and open '''[https://www.puttygen.com/ PuTTYgen]'''.  
# Download and open '''[https://www.puttygen.com/ PuTTYgen]'''.


[[File:PuttyGenStep1.png]]
[[File:PuttyGenStep1.png]]


2. In the Key Generator window, click '''Generate''' and move your mouse randomly in the blank area to create randomness.
2. In the Key Generator window, click ''''Generate'''' and move your mouse randomly in the blank area to create randomness.


[[File:Puttygen.png]]
[[File:Puttygen.png]]


3. Save your public and private key. Make sure to keep your private key secure and private. Your public key will be uploaded to Bravenet in the next step.
3. Save your keys by clicking '<nowiki/>'''Save public key'''<nowiki/>' and ''''Save private key'''<nowiki/>'. Make sure to keep your private key secure. Your public key will be uploaded to Bravenet in the next step.


[[File:Puttygenkeytop.png]]
[[File:Puttygenkeytop.png]]
=== Step 2: Upload Your SFTP Key to Bravenet ===
1. Log in to your Bravenet account.


2. Go to the '''SFTP''' page and then click '''Authorized Keys''' next to your SFTP account. [[File:Authorized Keys.png|593x593px]]


'''Note:''' When copying the public key, please make sure you are selecting all of the text, as you many need to scroll to the bottom to see the entire key.
3. Click the '''Choose File''' button and select your public key created above.
 
[[File:Puttygenbottom.png]]


=== Step 2: Upload Your SFTP Key to Bravenet ===
[[File:KeyChooseFile.png|590x590px]]
1. Log in to your Bravenet account.


2. Go to the '''SFTP''' page and then click '''Authorized Keys''' next to your SFTP account. [[File:Authorized Keys.png|593x593px]]
4. Click '''Upload''' and your key will be added to your account.
# Click the '''Choose File''' button.
[[File:Upload Button.png|590x590px]]


4. Your key will now be added to your account.
[[File:NewKey2.png|592x592px]]


[[File:NewKey.png|592x592px]]


=== Step 3: Connect via SFTP ===


# Open your preferred SFTP client (e.g., FileZilla, Cyberduck, or Terminal).
You have now successfully uploaded your key for SFTP authentication. If you have any further questions on how to use this feature, please reach out to our support team anytime!
# Use your Bravenet SFTP account username and the private key to connect.

Latest revision as of 14:10, 2 January 2025

How to Set Up SFTP Authentication with Bravenet Hosting

Bravenet hosting now supports SFTP keys for enhanced security. Public SSH keys can used for authentication to your SFTP account. We support OpenSSL Public Keys (.pub) or Putty's Public Keys.

Step 1: Generate an SFTP Key

On Mac or Linux (Using Terminal)

  1. Open the Terminal application.
  2. Run the following command, replacing keynamehere with your desired file name: ssh-keygen -f keynamehere
  3. Follow the prompts:
    • Press Enter
    • Add a passphrase for extra security (optional)
  4. This will generate two files:
    • Your private key (keep this secure and private).
    • Your public key (used for uploading to Bravenet).

On Windows (Using PuTTY)

1. Download and open PuTTYgen.

PuttyGenStep1.png

2. In the Key Generator window, click 'Generate' and move your mouse randomly in the blank area to create randomness.

Puttygen.png

3. Save your keys by clicking 'Save public key' and 'Save private key'. Make sure to keep your private key secure. Your public key will be uploaded to Bravenet in the next step.

Puttygenkeytop.png

Step 2: Upload Your SFTP Key to Bravenet

1. Log in to your Bravenet account.

2. Go to the SFTP page and then click Authorized Keys next to your SFTP account. Authorized Keys.png

3. Click the Choose File button and select your public key created above.

KeyChooseFile.png

4. Click Upload and your key will be added to your account.

NewKey2.png


You have now successfully uploaded your key for SFTP authentication. If you have any further questions on how to use this feature, please reach out to our support team anytime!