Skip to main content

Presently, there is no Box client for Linux. Rutgers University and several other institutions advocate the use of Linux. That said, Box can still be used effectively via HTTPS. Follow the below instructions to install and run Box on Linux.

HTTPS Access

You can access your Box account using the web interface, which will give you the ability to preview, upload, and download files. Just log in through CAS using your Rutgers NetID.

Getting started with Box

Using Box via the Web

NOTE: Currently, Box Edit is not available to Linux users. Box for Office Online features, however, are supported, enabling you to create, edit, and share Word, Excel, and Powerpoint files — directly from a browser.

SFTP (LFTP)

NOTE: You should never use the standard FTP protocol with login credentials, since the credentials will be transferred across the network in clear text. Box log in will fail if you attempt on an unencrypted FTP connection, but even a failed FTP login attempt will send your credentials in clear text.

The lftp command is a powerful file transfer client, designed for Unix and Unix-like operating systems. Box supports the secure FTPS protocol, which you can use with lftp for secure file transfer and mirroring. The lftp command will auto-negotiate to use FTPS and the following example enforces that absolutely no unencrypted FTP is ever attempted.

$ lftp
lftp :~> set ftps:initial-prot “”
lftp :~> set ftp:ssl-force true
lftp :~> set ftp:ssl-protect-data true
lftp :~> open ftps://ftp.box.com:990
lftp ftp.box.com:~> user username@rutgers.edu
Password:
lftp username@rutgers.edu@ftp.box.com:~> ls

Once you are connected, you can use normal FTP commands like “is,” “get,” “put,” etc.

One interesting application of lsftp with Box is using it to mirror a local directory in a manual way. Below is a sample script that mirrors a local /u/username/MyProject directory to Box into a folder of the same name (MyProject):

#!/bin/bash
lftp -c ‘open -e “set ftps:initial-prot “”; \
set ftp:ssl-force true; \
set ftp:ssl-protect-data true; \
open ftps://ftp.box.com:990; \
user username@rutgers.edu; \
mirror –reverse –delete –no-perms –verbose “/u/username/MyProject” MyProject;” ‘

When you run this script, it will prompt for a password and then mirror your local directory to Box. Each time you run it, it will re-sync any changes on the local filesystem with the copy on Box. The –verbose option causes lftp to tell you exactly what it is doing. If you are doing this via crontab, you probably want to remove that and you will also need to pass along the password in the script so do that with caution.

Note that when using this method, you may have it fail with this message:

NOTE: When using this method, you may have it fail with this message: Login failed: 530 Box: CAPTCHA is required. Please log into www.box.com in a web browser, and then try again. If that happens, just go to the Box website and log in using your Rutgers SSO credentials.

Helpful Links

Using Box Under Linux

FTP and FTPS migration

Download and install

Using Box software

Getting Setup as a Delegated Administrator

Data classification and storage matrix