Transferring Files via SFTP

View all VISU instructions

Files are transferred from your local computer to the server using the put command in an SFTP session.

For example:

put dataset.csv

You can use either the file name or the full file path, depending on where the file is located on your computer.

Open a Terminal Window

Windows

Open either Command Prompt or PowerShell.

Linux

Open a Terminal window.

Establish an SFTP Connection

Enter the following command:

sftp <username>@files.visu.oulu.fi

Press Enter.

If the connection is successful, you will see:

Connected to files.visu.oulu.fi.

Note

If you are connecting for the first time, you will likely see a message similar to:

The authenticity of host ‘files.visu.oulu.fi (130.231.244.123)’ can’t be established.
ED25519 key fingerprint is SHA256:eHQyrg4*.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

In that case type yes

You will then see:

Warning: Permanently added ‘files.visu.oulu.fi’ (ED25519) to the list of known hosts.

This is normal. You can now reconnect to the server.

Log In

When prompted, enter your password or other authentication information required by your organization.

Once the connection is established successfully, you will see the SFTP prompt:

sftp>

You can now use SFTP commands.

Check Available Environments

To display all user environments you have access to, run:

ls

Select the environment where you want to transfer your data and move into it:

cd <user-environment>

Verify that you are in the correct environment:

pwd

You should see:

Remote working directory: /<user-environment>

Each environment contains three directories:

  • export
  • import
  • work

List them using:

ls

Files must always be uploaded to the import directory.

Move to the import directory:

cd import

Transfer a File

Windows

The default local directory for SFTP is usually:

C:\Users\<username>

If the file is located in this directory, transfer it using:

put <file-name>

If the file is located elsewhere, specify the full path:

put C:\Users\<username>\Downloads\<file-name>

Note

If the file path contains spaces, enclose it in quotation marks:

put "C:\Users\<username>\Downloads\<file-name>"

Linux

The default local directory for SFTP is usually the user’s home directory:

/home/<username>

You can display your current local directory with:

pwd

If the file is located in your home directory, transfer it using:

put <file-name>

If the file is located elsewhere, specify the full path:

put /home/<username>/Downloads/<file-name>

Verify That the File Was Uploaded Successfully

Check the contents of the import directory:

ls

For example, you may see:

dataset.csv

If the file appears in the directory listing and the put command completed without errors, the file has been successfully transferred to the server.

Back to top