Create an SFTP account: Difference between revisions


mNo edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{done}}
{{done}}
You need to have an FTP account to use [[FTP]] to manage your files on your Bravenet account.  You can still use the [[File Manager]] without an FTP account.
You need to have an SFTP account to use [[SFTP]] to manage your files on your Bravenet account.  You can still use the [[File Manager]] without an SFTP account.


It is recommended that you use FTP to manage any larger websites that you may choose to host with Bravenet.  It provides greater ease-of-use and reliability when dealing with the hundreds, or perhaps even thousands of files involved in more complicated websites.
It is recommended that you use SFTP to manage any larger websites that you may choose to host with Bravenet.  It provides greater ease-of-use and reliability when dealing with the hundreds, or perhaps even thousands of files involved in more complicated websites.


Note that you need to complete these steps to create a new FTP account whether you plan on using our [[FTP applet]] or a [[3rd party FTP program]].
==Creating a SFTP account==
 
==Creating a FTP account==


# [[Log in to your Bravenet account]].
# [[Log in to your Bravenet account]].
# Select the [[FTP tab| '''FTP''']] tab.
# Select the [[SFTP_tab| '''SFTP''']] tab.
# Select the '''New FTP account''' option.
# Select the '''New SFTP Account''' option.
# You will be prompted to select a '''home directory'''.  This will be the directory that your FTP client will show when you log in with the account you are creating.  For most users, the default is fine - it will give the FTP user you are creating full access to all your websites.  For information on changing the home directory, see [[#Using a Non-Standard Home Directory|below]].
# You will be prompted to select a '''home directory'''.  This will be the directory that your SFTP client will show when you log in with the account you are creating.  For most users, the default is fine - it will give the SFTP user you are creating full access to all your websites.  For information on changing the home directory, see [[#Using a Non-Standard Home Directory|below]].
# Type in a username and password.  Note that your username will automatically be followed by a number - this is part of your username.  For example, <tt>testuser-1234567890</tt>.  Ensure you choose a secure password!  When done, click the '''create FTP account''' button.
# Type in a username and password.  Note that your username will automatically be followed by a number - this is part of your username.  For example, <tt>testuser-1234567890</tt>.  Ensure you choose a secure password!  When done, click the '''create SFTP account''' button.
# You can now login to your FTP account using either our [[FTP applet]] or a [[3rd party FTP program]].
# You can now login to your SFTP account using a [[Using_a_3rd_party_SFTP_program | 3rd party SFTP program]].


==Using a Non-Standard Home Directory==
==Using a Non-Standard Home Directory==
There are cases where you may not want to give an FTP account full access to all of the files on your account.  For example, maybe you manage multiple websites for multiple people/businesses - you may want each person to have their own FTP account, and restrict that account to only one website, or one part of one website.
There are cases where you may not want to give an SFTP account full access to all of the files on your account.  For example, maybe you manage multiple websites for multiple people/businesses - you may want each person to have their own SFTP account, and restrict that account to only one website, or one part of one website.


In that case, in step 4 above, navigate through the directories in the dialog box to the directory you wish to have as the home directory.  Only subdirectories of that home directory will be accessible through that FTP account.
In that case, in step 4 above, navigate through the directories in the dialog box to the directory you wish to have as the home directory.  Only subdirectories of that home directory will be accessible through that SFTP account.


The typical account has the following directory structure:
The typical account has the following directory structure:
Line 29: Line 27:
** example.com
** example.com


In this example, if you set <tt>web/website1.example.com/</tt> as your home directory for an FTP account, that account will only be able to access files in <tt>website1.example.com</tt> and its subdirectories.  It would be unable to access files on <tt>example.com</tt> or <tt>website2.example.com</tt>.
In this example, if you set <tt>web/website1.example.com/</tt> as your home directory for an SFTP account, that account will only be able to access files in <tt>website1.example.com</tt> and its subdirectories.  It would be unable to access files on <tt>example.com</tt> or <tt>website2.example.com</tt>.


[[Category:FTP]]
[[Category:FTP]]
[[Category:Getting Started]]
[[Category:Getting Started]]
[[Category:Account]]
[[Category:Account]]

Latest revision as of 13:14, 18 May 2021

You need to have an SFTP account to use SFTP to manage your files on your Bravenet account. You can still use the File Manager without an SFTP account.

It is recommended that you use SFTP to manage any larger websites that you may choose to host with Bravenet. It provides greater ease-of-use and reliability when dealing with the hundreds, or perhaps even thousands of files involved in more complicated websites.

Creating a SFTP account

  1. Log in to your Bravenet account.
  2. Select the SFTP tab.
  3. Select the New SFTP Account option.
  4. You will be prompted to select a home directory. This will be the directory that your SFTP client will show when you log in with the account you are creating. For most users, the default is fine - it will give the SFTP user you are creating full access to all your websites. For information on changing the home directory, see below.
  5. Type in a username and password. Note that your username will automatically be followed by a number - this is part of your username. For example, testuser-1234567890. Ensure you choose a secure password! When done, click the create SFTP account button.
  6. You can now login to your SFTP account using a 3rd party SFTP program.

Using a Non-Standard Home Directory

There are cases where you may not want to give an SFTP account full access to all of the files on your account. For example, maybe you manage multiple websites for multiple people/businesses - you may want each person to have their own SFTP account, and restrict that account to only one website, or one part of one website.

In that case, in step 4 above, navigate through the directories in the dialog box to the directory you wish to have as the home directory. Only subdirectories of that home directory will be accessible through that SFTP account.

The typical account has the following directory structure:

  • web
    • website1.example.com
      • some subdirectory
      • another subdirectory
    • website2.example.com
    • example.com

In this example, if you set web/website1.example.com/ as your home directory for an SFTP account, that account will only be able to access files in website1.example.com and its subdirectories. It would be unable to access files on example.com or website2.example.com.