SSH/rsync
You can access your Offsite Storage Space via an SSH connection to use rsync there. Use port 23 to access your Offsite Storage Space for this purpose.
Important note: For SSH key authentication, you must save a public SSH key in normal OpenSSH format on your Offsite Storage Space. Do not save the key in RFC4716 format. This needs manual setup by our team, feel free to contact us via Support Ticket.
Please also note that only the directory /home/ is writable on the Offsite Storage Space. To address directories or files on the Offsite Storage Space, we therefore recommend that you use relative paths. For example, to download the file /server1/full_backup.tar.gz from the Offsite Storage Space, you can use the following file paths:
server1/full_backup.tar.gz
./server1/full_backup.tar.gz
Interactive SSH access is not allowed.
rsync
You can use rsync to synchronize the current state of your file directories to your Offsite Storage Space. For example, to synchronize a local directory to the Offsite Storage Space, you can use rsync as follows:
rsync --progress -e 'ssh -p23' --recursive <local_directory> <sr-your_storage_number>.mycoreserver.com:<target_directory>
To re-download a directory from the Offsite Storage Space, you only need to swap the directories:
rsync --progress -e 'ssh -p23' --recursive <sr-your_storage_number>.mycoreserver.com:<remote_directory> <local_directory>
Please note that it is not possible to customize the user and group ID of the uploaded files.
SCP
You can also use SCP via port 23. To upload a file via SCP, you can execute the following command:
scp -P 23 <local_file> <sr-your_storage_number>.mycoreserver.com:<remote_file>
To download the file again, you only have to swap the target and source files:
scp -P 23 <sr-your_storage_number>.mycoreserver.com:<remote_file> <local_file>
SFTP
Accessing your Offsite Storage Space via SFTP is similar to accessing it with an FTP client. To start an SFTP session, please execute the following command:
sftp -P 23 <sr-your_storage_number>.mycoreserver.com
You can then upload files using put and download them using get. With ls you get a directory listing:
sftp> put 100MB.file
Uploading 100MB.file to /home/100MB.file
100MB.file 100% 100MB 78.7MB/s 00:01
sftp> ls -ahl
drwxr-xr-x 0 12345 12345 16B Mar 28 10:55 .
dr-x--x--x 0 0 0 10B Mar 27 12:16 ..
-rw-r--r-- 0 12345 12345 100M Mar 28 11:34 100MB.file
sftp> get 100MB.file
Fetching /home/100MB.file to 100MB.file
/home/100MB.file 100% 100MB 110.6MB/s 00:00
sftp> quit
SSH Host Keys
In order to ensure the authenticity of the connection, you can compare the host keys of the Offsite Storage Space with the following keys below.
SHA256:XqONwb1S0zuj5A1CDxpOSuD2hnAArV1A3wKY7Z3sdgM (ED25519)
SHA256:EMlfI8GsRIfpVkoW1H2u0zYVpFGKkIMKHFZIRkf2ioI (RSA)
SHA256:RWkLouD9tfTwdboJOzjiWo5njZI59Hcta82ttAWxDA0 (DSA)
SHA256:oDHZqKXnoMtgvPBjjC57pcuFez28roaEuFcfwyg8O5c (ECDSA)
Got a question? Connect with us and Create a Ticket.
