From Redrock Wiki
TracCloud Technical Documentation
Using SSH Keys for SFTP Authentication
By default, Redrock will provide a single username and password to access your campus SFTP directory. If you would prefer to authenticate using SSH keys, we'll simply need a copy of your public SSH-RSA key to install on our end. We've included basic instructions below for creating a key pair with a simple CLI tool and logging into the SFTP site using WinSCP. This isn't the only method to accomplish this, there are multiple ways to generate SSH-RSA keys and many FTP clients available.
Generating a key pair
Using MacOS or Linux, run the ssh-keygen command in a terminal. Passphrase should be left blank. Both your private and public key can be found in ~/.ssh (by default). This will generate a 3072-bit pair. If you would prefer to generate a larger key, you can use the -b option. For example, ssh-keygen -b 4096. Click here to view instructions for Windows (ssh.com)
id_rsa is your private key, which should not be shared.
id_rsa.pub is your public key, which should be provided to Redrock Software.
After Redrock Software receives your public key(s), you can login using your preferred SFTP client. WinSCP is a common choice, which is shown as an example below.
Edit your site configuration.
Locate the SSH settings and select your private key.
Some SFTP clients (such as WinSCP) may require that the private key be in a PuTTY format. For WinSCP, you can follow the on-screen instructions to convert the key and use the new .ppk file instead. This does not require changing your public key.
Save your site configuration settings and connect. If you have any trouble, reach out to Redrock Software at email@example.com.