You are here

Using SFTP/RSync over SSH protocol (HTTP/HTTPS) with iKeepinCloud

English
Forums: 
Advantages and disadvantages of SFTP/Rsync over SSH

Advantages
  • Very fast
  • Secure
  • Automation option for advanced users (RSync)

Disadvantages:
  • Operations may be complex (RSync over SSH)

iKeepinCloud login

Enter the following information to log in to iKeepinCloud:
  • Server address: this will always be "your_ID.ikeepincloud.com"
  • Your login (sent in the confirmation email)
  • Your password (sent in the confirmation email)

BITKINEX

Create a new SFTP profile using any name you like, then go to configuration.



Choose authentication by "Password", enter your login and confirm.

CYBERDUCK

Use the "New connection" button to create a new SFTP account. Choose "SFTP" from the list of protocols and enter your login information.



The connection should be on port 22.

FIREFTP

To create a SFTP account, click on "Create an account". Under the "Main" tab, enter your login then click on the "Connection" tab. To connect in SFTP, select the "SFTP" security type.



FILEZILLA

Start by opening "Site Manager":



Then click on "New site" and enter your information as shown:



WINSCP

To create a new connection for this client, click on the "New" button in the login window, then go to the "Stored Sessions" tab.



Configure your access in "SFTP" mode, the SCP is not operational.




Rsync over SSh

You can use the RSync command through a SSH tunnel to perform operations such as scheduled backups.
For example, if you want to set up a daily backup of your directory on your GNU/Linux server at 4:00 am, you would perform the following actions:
  • On your iKeepinCloud space, create a directory (or directories) that contain backups (for example: "~/backups/web"). You can perform this operation from any supported client.
  • Then, enter the SSH key (generally ~/.ssh/id_rsa.pub) for the server that will connect to your IKIC storage space

# cat /root/.ssh/id_rsa.pub
ssh-rsa AAAAB[…]PrHH/gWc8lQ== root@monserveur

Copy the line "ssh-rsa […] root@"

  • You can then add this key to the ".ssh/authorized_keys" file in your storage space (you must then download this file, enter the key you want and then resend it to your space, in the same place).




  • Now you should be able to connect via the key "owner" user, from the server where it was located, to your storage space without entering a password. This test will also accept the key from a remote server. We will perform this test in SFTP.

monserveur ~ # sftp @.ikeepincloud.com
The authenticity of host '.ikeepincloud.com ([…])' can't be established.
RSA key fingerprint is […].
Are you sure you want to continue connecting (yes/no)? Yes
Warning: Permanently added '.ikeepincloud.com,[…]' (RSA) to the list of known hosts.
Connected to .ikeepincloud.com.
sftp>

As you should see, beyond accepting the remote key, you will not be asked for confirmation or a password (now that you have validated the key, key confirmation should no longer be requested).

  • Now you can set up your cron task backup. For example, use this command in the crontab:

rsync -avr --progress --stats -e ssh /repertoire/source
@.ikeepincloud.com:~/destination/ >> 2>&1