Sftp Into Iphone

broken image


There are different ways to connect to your application remotely, some more secure than others. Two secure methods which we like to use ourselves are Secure Shell (SSH), and Secure File Transfer Protocol (SFTP). Both methods are supported over all our server plans include SSH and SFTP access.

For example, iPhone users can download this file manager and explorer app for iOS which can turn their iPhone into FTP server. Setup FTP server on iPhone. Run the file explorer app on iPhone, head to the Local section from its home screen and touch the Wi-Fi icon at the bottom to setup the FTP server on iPhone. See below screenshot. HOW TO: SSH Into Your iPhone, iPad and iPod Touch Running iOS 7 Mac & Windows learn how easy it is to SSH into your iPhone, iPad or iPod touch. Now that your device is jailbroken, you can SSH into it to transfer and edit files. SSHing will give you full access to all the files stored on your device. Before we proceed with the tutorial let.

Video Tutorial — How to Connect via SSH on Windows

Video Tutorial — How to Connect via SFTP on Windows

What is SSH?

Secure Shell provides strong authentication and encrypted data communications between two computers or servers connecting over an open network such as the internet. This means that any device in the middle is unable to decipher the communication because only your end device/server is able to decrypt the information exchange.

Tip

You can also run additional tools such as Composer, Git, WP-CLI for WordPress, and database queries using SSH.

What is SFTP?

SFTP stands for Secure File Transfer Protocol (also known as SSH File Transfer Protocol). It is a file transfer protocol such as FTP yet operates over a secure network protocol like SSH. We highly recommend using SFTP for file transferring because:

  • It adds a layer of security.
  • Transferred data is encrypted, so it is not sent in clear text.

How to Connect to Your Application Using SSH/SFTP

Prerequisites

To connect to your server or application using SSH, you will need the following:

  • Master username or Application username.
  • Password
  • Public IP address (also known as Server IP)

We will help you locate this information on your Cloudways Platform in the next steps. Please note that the Master user has SSH access enabled by default; however, you need to manually enable SSH access for the application user(s).

SSH/SFTP — Accessing the Credentials

There are two types of credentials (Master credentials and Application credentials) on the Cloudways Platform that you can use to connect to your application. Usually, team members are provided with application credentials by the website owner. So, which credentials will you be using?

Important
  • If you are using Microsoft Windows you will either need to enable WLS (Windows Linux Subsystem) or else use a free third-party tool such as PuTTY . Alternatively, you can also use the built-in SSH Terminal of Cloudways Platform.
  • You need an SFTP client to connect to your server remotely. In this demonstration, we are using a free third-party tool called FileZilla , which is available on Windows and macOS, but you can also use any other client. Please make sure to download such tools only from their official website to always get the latest available version.
Using Master Credentials

Log in to your Cloudways Platform using your email address and password.

  1. From the top menu bar, open Servers.
  2. Then, choose the server you wish to connect.
  1. Under Server Management, you can find your Public IP address, username, and password. Be sure to take note of it.
Tip

Click on credentials to copy it on the clipboard.

Using Application Credentials

Log in to your Cloudways Platform using your email address and password.

  1. From the top menu bar, open Servers.
  2. Then, choose your server where your desired application is deployed to view application credentials.
  1. Next, click www.
  2. Choose your desired application's name.
  1. Under Application Credentials, you can find your Public IP address, application username, and password. Be sure to take note of it.
Tip
  • Click on credentials to copy it on the clipboard.
  • If there are no credentials, then you can create application credentials.

Below, you will find information about initiating connections using SSH and SFTP separately.

SSH (Microsoft Windows) — Initiating Connection
  1. Launch PuTTY client and enter your Host name (Server Public IP address).
  2. Input Port 22, which is also the standard TCP port for SSH.
  3. Click Open.
  1. You may see an RSA2 key prompt if this is your first time connecting to the server. Click Yes to make this a trusted host for future connections.
SSH (Microsoft Windows) — Logging in to Server
  1. Here, you need to input your master or application username, which you previously noted.
Tip
  • To paste the copied item in the terminal, tap right-click once.
  • The terminal screen will only work with arrow keys for navigation, not with a mouse.
  1. Next, input your password. Please note that no character will appear as you type the password due to security reasons.
  1. You are now connected to your server via SSH. Now, you can run commands such as ls to list and navigate your files and directories.
Important

If you are using the Master Credentials, you will need to browse to your target application folder. If you are using the Application Credentials, you will land directly in the respective application folder.

SSH (Linux/macOS) — Logging in to Server

We won't require any external SSH client for Linux/macOS, although you are free to do so if you already have some preferred 3rd party application. In this example, we are using Linux (Ubuntu).

  1. Open your terminal and execute the following command. Username refers to a master username or application username, and the hostname is your Server Public IP address. By default, the SSH connection is initiated using port 22.

Example: ssh master_ojnokgldl@192.168.0.1

Note: you can also point your SSH client to which private key should be used by using the -i identity switch as follows:

Tip
  • The terminal screen will only work with arrow keys for navigation, not with a mouse.
  1. You may see an RSA key prompt if this is your first time connecting to the server. Type yes to make this a trusted host for future connections.
  1. Next, input your password. Please note that your password will not become visible due to security reasons.
  1. You are now connected to your server via SSH. Now, you can run commands such as ls to list and navigate your files and directories.
Important
  • If you are using the Master Credentials, you will need to browse to your target application folder. If you are using the Application Credentials, you will land directly in the respective application folder.
  • Please note that SSH is a potent tool, and advanced users use it. Executing wrong instructions may break your website and delete the critical files; therefore, we recommend using it with extra care and always take a backup of the application you are working on or take a whole server backup always to restore if needed.
SFTP — Initiating Connection
  1. Launch FileZilla client and enter sftp://server-ip-address in Host. By writing sftp:// , you are ensuring that the SFTP connection is formed.
  2. You need to input your master or application username, which you previously noted.
  3. Next, input your password.
  4. Set Port 22.
  5. Finally, click QuickConnect.
  1. You are now connected to your server via SFTP. Now, you can drag and drop files and folders between your personal computer and your server.
Important
  • If you are using the Master Credentials, you will need to browse to your target application folder. If you are using the Application Credentials, you will land directly in the respective application folder.
  • If you face any permission-related issues, then you can also reset your file and folder permissions.
That's it! You have learned how to connect to your application(s) using SSH and SFTP remotely. If you are having trouble building remote connections, please feel free to contact us via LiveChat or open a support ticket so that our support heroes can assist.

When you set up SFTP in the SIS/SFTP Assistant, Apple School Manager gives you CSV template files and the access information for a private SFTP server. You can export data from a supported SIS, or create the files in a spreadsheet application like Numbers. Before you export from your SIS, contact your SIS to make sure the format is correct for Apple School Manager.

SFTP upload requires a third-party application on macOS. If you don't have an SFTP client installed, you can find one in the Mac App Store.

Use the buttons below to get help setting up your SFTP files. If you haven't used SFTP to upload data into Apple School Manager, you should start with the Set up your first SFTP upload section.

Set up your first SFTP upload

  1. Sign in to Apple School Manager as an Admin, Site Manager, or People Manager.
  2. Click Settings in the bottom-left corner, choose Data Source, then click Connect. You must verify a domain before you can set up SFTP.
  3. Click Find Students, Staff, and Classes.
  4. Click Set Up SFTP.
  5. Apple School Manager generates a URL, user name, and password to use when uploading files. Use this information to configure your SFTP client.
  6. Click Download Templates.
  7. Read the instructions for using templates in the 'Filling Out Data Files' section.
  8. When your data files are filled out, create a zip archive of all six files. In the Finder you can select the files then go to the File menu and choose Compress 6 Items. It doesn't matter what you name the zip archive.
  9. Upload the zip file to Apple School Manager. Use a SFTP client to connect to the URL shown in the SIS/SFTP Assistant. When asked for sign in information, use the user name and password you received when you clicked Set Up SFTP. Copy the zip file to the dropbox directory.
  10. Click Continue in the SIS/SFTP Assistant. If your upload contains errors, you can review a log identifying the files and lines that contain errors. Correct any errors in the data files, then repeat steps 8 and 9. You don't need to remove the previous file from the SFTP server.
  11. When the SFTP import finishes, click Review SFTP Data. If you find any errors, click Cancel. Correct any errors in the data files, then repeat the upload process. If the data is accurate and complete, click Continue.
  12. Under Create Accounts and Classes, choose a Managed Apple ID format for students, instructors, and staff. Click Preview Accounts and Classes. When the IDs are in the correct format, click Create Accounts and Classes. Only verified domains can be used in the Managed Apple ID format.
  13. After the accounts are created, distribute sign-in information to users and assign roles to staff.
Sftp

Fill out your data files

The template download includes six comma-separated value (CSV) files for Classes, Courses, Locations, Rosters, Students, and Staff. If the templates are not available in Apple School Manager, or if you lost a copy of the original templates, you can download them again.

You can use your SIS to export data in the format described by the templates and this article, or you can edit the templates in a spreadsheet program such as Numbers.

Use the tables in this article to make sure you enter the correct information, then save each file without changing its name.

Format your values

If you edit the templates, replace the example data with your own. Don't change the contents of the header cells in each file. Don't add columns in any file, except as described below.

In every template, each row must represent a unique value. For example, within the students.csv, each row must be a unique student. Certain values for that student can be empty. Literal values like a line break or quotation mark character within a name must be escaped with a backslash (), like ('). Any identifiers entered must be alphanumeric and can include a '-'.

If your value contains a space ( ) or comma (,), use straight quotation marks (') around it. If your value doesn't have any of these special characters, don't use quotation marks. If you don't use quotes where they are needed, or you use curly quotes, you will get errors in the upload process.

The values in your files must be separated with commas (,) or semicolons (;), regardless of how you created the file. Don't use spaces or tabs between a comma or semicolon and the next value. Each file must be encoded as UTF-8 and use Unix new-lines (n).

If an otherwise optional field like person_number or sis_username is part of your Managed Apple ID format, it becomes a required field. If you leave it blank, upload will fail with the error MANAGED_ID_GENERATION_FAILED.

Locations file

location_idA unique identifier made of numbers and/or letters that contains no spaces.Required
location_nameThe name of the location. Required

You must define at least one location in the Locations file. You can't use SFTP to create student or staff accounts in the main 'headquarters' location.

Students file

If you use SFTP to upload a new person, and the person_id you assign already exists in Apple School Manager, your new person overwrites the existing user in Apple School Manager. After the overwrite is complete, you can only update that user via SFTP.

Sftp Into Iphone

Fill out your data files

The template download includes six comma-separated value (CSV) files for Classes, Courses, Locations, Rosters, Students, and Staff. If the templates are not available in Apple School Manager, or if you lost a copy of the original templates, you can download them again.

You can use your SIS to export data in the format described by the templates and this article, or you can edit the templates in a spreadsheet program such as Numbers.

Use the tables in this article to make sure you enter the correct information, then save each file without changing its name.

Format your values

If you edit the templates, replace the example data with your own. Don't change the contents of the header cells in each file. Don't add columns in any file, except as described below.

In every template, each row must represent a unique value. For example, within the students.csv, each row must be a unique student. Certain values for that student can be empty. Literal values like a line break or quotation mark character within a name must be escaped with a backslash (), like ('). Any identifiers entered must be alphanumeric and can include a '-'.

If your value contains a space ( ) or comma (,), use straight quotation marks (') around it. If your value doesn't have any of these special characters, don't use quotation marks. If you don't use quotes where they are needed, or you use curly quotes, you will get errors in the upload process.

The values in your files must be separated with commas (,) or semicolons (;), regardless of how you created the file. Don't use spaces or tabs between a comma or semicolon and the next value. Each file must be encoded as UTF-8 and use Unix new-lines (n).

If an otherwise optional field like person_number or sis_username is part of your Managed Apple ID format, it becomes a required field. If you leave it blank, upload will fail with the error MANAGED_ID_GENERATION_FAILED.

Locations file

location_idA unique identifier made of numbers and/or letters that contains no spaces.Required
location_nameThe name of the location. Required

You must define at least one location in the Locations file. You can't use SFTP to create student or staff accounts in the main 'headquarters' location.

Students file

If you use SFTP to upload a new person, and the person_id you assign already exists in Apple School Manager, your new person overwrites the existing user in Apple School Manager. After the overwrite is complete, you can only update that user via SFTP.

person_id

The unique identifier for a specific student. This person_id should match the unique identifier in your SIS if available. This person_id is the unique identifier for the student in Apple School Manager. Use this value to refer to the student in the Rosters file and instructors in the Classes file.

Required
person_numberAnother value that might identify a student in your school. This might be a student identification number. Optional
first_nameThe student's first name.Required
middle_nameThe student's middle name.Optional
last_nameThe student's last name.Required
grade_levelThe student's grade level.Optional
email_address*An email address for the student.Optional
sis_usernameThe user name for the student in your SIS. Optional
password_policyUse the password_policy field to specify a password policy for each specific student. The password_policy field must have the number 4, the number 6, the number 8, or be left blank. If you select 8, this will be a standard password policy (8+ alphanumeric characters). This value overrides the location password policy and any password policy you previously set for that student. If you leave password_policy blank, the default password policy for the location is used for a new student and no changes are made to existing students.Optional
location_idThe location_id for the student. This must correspond with a location_id in the Locations file. If this entry doesn't match an entry in the Locations file, you will experience issues in the upload process.Required

* If federated authentication is enabled, an email address is required. If the email address is in a federated domain, the user account will be federated.

Assign multiple locations

You can assign more than one location to a student by adding more location columns to the Students file. You can add up to 998 more location columns named location_id_2, location_id_3, up to location_id_999. For each student, you can optionally enter another location_id in each of these columns. This must correspond with a location_id in the Locations file. If this entry doesn't match an entry in the Locations file, you will experience issues in the upload process.

Staff file

If you use SFTP to upload a new person, and the person_id you assign already exists in Apple School Manager, your new person will overwrite the existing user in Apple School Manager. After the overwrite is complete, you can only update that user via SFTP. All staff receive the standard password policy (8+ alphanumeric characters).

person_id

The unique identifier for a specific staff member. This person_id should match the unique identifier in your SIS if available. This person_id is the unique identifier for the staff member in Apple School Manager. Use this value to refer to instructors in the Classes file.

Required
person_numberAnother value that might identify a staff member in your school. This might be a staff badge number. Optional
first_nameThe staff member's first name.Required
middle_nameThe staff member's middle name.Optional
last_nameThe staff member's last name.Required
email_address*An email address for this staff member. Optional
sis_usernameThe user name for the staff member in your SIS.Optional
location_idThe location_id for the staff member. This should correspond with a location_id in the Locations file. If this entry doesn't match an entry in the Locations file, you will experience issues in the upload process.Required

* If federated authentication is enabled, an email address is required. If the email address is in a federated domain, the user account will be federated.

Assign multiple locations

You can assign more than one location to a staff member by adding more location columns to the Staff file. You can add up to 998 more location columns named location_id_2, location_id_3, up to location_id_999. For each staff member, you can optionally enter another location_id in each of these columns. This must correspond with a location_id in the Locations file. If this entry doesn't match an entry in the Locations file, you will experience issues in the upload process.

Courses file

course_idA unique identifier for the course. This must match the corresponding course_id used in the Classes file. Required
course_numberA number for the course. This number might be the course number in your SIS or your curriculum guide.Optional
course_nameThe name of your course.Optional
location_idThe location_id for the course. This should correspond with a location_id in the Locations file. If this entry doesn't match an entry in the Locations file, you will experience issues in the upload process.
Required

Classes file

Sftp Into Iphone

class_idA unique identifier for the class. Required
class_numberA number or code that identifies this class in your organization. Unlike class_id, class_number isn't used to refer to this class in CSV rosters. Optional
course_idThe course_id of the course this class belongs to. This must match a course_id in the Courses file.Required
instructor_idThe person_id for the instructor. This must match the person_id used in the Staff file.Optional
instructor_id_2The person_id for the instructor. This must match the person_id used in the Staff file.Optional
instructor_id_3The person_id for the instructor. This must match the person_id used in the Staff file.Optional
location_idThe location_id for the class. This should correspond with the location_id in the Locations file. If this entry doesn't match an entry in the Locations file, you will experience issues in the upload process.Required

Assign multiple instructors

You can assign more than three instructors to a class by adding more instructor columns to the Classes file. You can add up to 12 more instructor columns named instructor_id_4, instructor_id_5, up to instructor_id_15. For each class, you can optionally enter another person_id for the instructor. This must match the person_id used in the Staff file.

Rosters file

roster_idA unique identifier for the roster in your SIS or other course database (if available). Required
class_idA unique alphanumeric identifier for the class. This must match a class_id in the Class file.
Required
student_idA person_id for one student. Required

The Rosters file is used to add students to their classes. El capitan 2012. Each line in the file must have a unique roster_id, and contain only one class_id and one person_id.

Update your files

When you want to add or edit students, staff, and classes, edit your data files and upload the new copies. Whenever you upload files you must upload all six files, and each file must contain the complete list of each category, not just the items you intend to add. You can check SFTP account information by choosing Settings > Data Source.

If you accidentally disconnect your SFTP connection within Apple School Manager, your accounts change to manual and are deactivated. You can resolve this by restoring your SFTP connection and performing a new upload to reactivate accounts without creating duplicates.

After the first upload, new accounts and classes will be created automatically when you upload. If there are any errors, Apple School Manager will send you an email.

If an entry from an earlier upload is missing

If an entry from an earlier upload is missing, its source changes to Manual in Apple School Manager. Additional effects of the removal may vary. If students or staff are removed from the upload, their accounts are deactivated and automatically deleted after 30 days, unless the account has purchased volume content.

Ssh Into Iphone With Mac

If a course or a class is removed

Ftp Vs Sftp

If a course or a class is removed from the upload, students are removed from the class and the source changes to Manual. If courses were in use in iTunes U or Schoolwork, the roster is removed and a new course must be created for re-enrollment. If classes were in use in Schoolwork, progress data is deleted automatically and no longer available to the teacher or student.

Courses and classes with a manual source continue to sync with your MDM solution, but may no longer appear in the Classroom app. Manual classes can be deleted in Apple School Manager if you wish to remove them from syncing.





broken image