Kew SFTP service
There are two services provided by the kew SFTP:
-
Public access to Kew data sets and resources
-
Private sharing of data between Kew and our collaborators
Public Kew SFTP
This can be accessed from a browser at:
sftp.kew.org
or via a sftp client such as FileZilla or sftp on the command line:
Host: sftp.kew.org
User: anonymous
Pass:
Port: 22
Contributing to the public SFTP
If you'd like to host data on the public please contact Matthew Clake or Reinis Rozkalns
The setup is similar to the one described below for the Private SFTP.
Private SFTP
This service allows Kew staff to send and receive data as well as private sharing of collaborative documents
In order to set up the SFTP accounts contact, Matthew Clarke or Reinis Rozkalns.
They will request a project name, the names of all people to be added, and a public key generated by each user (see below)
A username will be assigned and given access to the sftp using the public key provided
Creating a private/public key pair
Linux/MacOS - command line
Open a terminal window and check to see if you already have a ssh key pair.
cd ~/.ssh/
ls
If there are the files id_rsa and id_rsa.pub you already have a key pair. If these files don't exist type:
ssh-keygen
Enter custom file names (or leave blank for default) and a password (or blank for no password). Then send the public key (default: id_rsa.pub) to the administrator creating the account.
Windows - PuTTY
Using PuTTY, which should be installed on Kew laptops.
-
From the start menu select the PuTTY directory and open PuTTYgen
-
Select Generate and move your mouse over the blank space until the key is generated.
-
Either copy the public key in the top box or the save public key button and send to the administrator setting up the account.
-
Save the Private key locally, to be used when connecting.
Connecting
Linux/MacOS - command line
Once the ssh Key pair has been set connect to the sftp:
sftp user@sftp.kew.org
once connected use the below commands to transfer files
get file-on-sftp #copy from sftp to local machine
put local-file #copy from local machine to sftp
mget file* #copy multiple files from sftp using glob
mput file* #copy multiple files to sftp usinog glob
for more commands read:
man sftp
Linux/MacOS/Windows - FileZilla
Open FileZilla, which should be installed on kew laptops.
Open site manager (top left button or file > site manager or Ctrl+S)
Enter credentials:
Host: sftp.kew.org
Port: 22
Logon Type: Key file
User: the username provided
Key file: the Private Key file you saved with PuTTYgen (*.pkk) or ssh-keygen (default: /home/username/.ssh/id\_rsa)
Click the connect button