How to access the StorageBox with SSH keys

First of all, activate the SSH service of your Storage Box within Robot.

Then follow these instructions to access the Storage Box with SSH keys:

  1. Generate an SSH key pair:

    cd ~
    mkdir -p storagebox
    cd storagebox/
    
    ssh-keygen -q -N '' -f key1
    ls key1*
  2. Upload the public key to the Storage Box server:

    cat key1.pub \
        | ssh -p23 uXXXXXX@uXXXXXX.your-storagebox.de install-ssh-key
    
    ### test it
    ssh uXXXXXX@uXXXXXX.your-storagebox.de -p23 -i $(pwd)/key1
  3. Create an SSH config entry:

    cat << _EOF_ >> ~/.ssh/config
    Host storagebox
        HostName uXXXXXX.your-storagebox.de
        User uXXXXXX
        Port 23
        IdentityFile /root/storagebox/key1
    _EOF_
    
    chmod 600 ~/.ssh/config
    ls -l ~/.ssh/config
    cat ~/.ssh/config
    
    ### test it
    ssh storagebox