Uploading SSH public keys to File Storage servers

Create your SSH key pair

To make use of SFTP to upload our SSH keys and create the authorized_key pair file on the remote File Storage server, use this command:

echo -e "mkdir .ssh \n chmod 700 .ssh \n put <path_to_public_ssh_key> .ssh/authorized_keys \n chmod 600 .ssh/authorized_keys" | sftp <file_storage_username>@<file_storage_server_name>

If you have multiple public SSH keys that need to be uploaded to the remote File Storage server, please append all required SSH public keys to a local file and upload that file to the remote File Storage server by using these commands:

cat .ssh/id_rsa.pub .ssh/id_ecdsa.pub > file_storage_authorized_keys

echo -e "mkdir .ssh \n chmod 700 .ssh \n put file_storage_authorized_keys .ssh/authorized_keys \n chmod 600 .ssh/authorized_keys" | sftp <file_storage_username>@<file_storage_server_name>