TracCloud: SSH Keys for SFTP Authentication: Difference between revisions
From Redrock Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
<big>Generating a key pair</big> | <big>Generating a key pair</big> | ||
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). If you would prefer to generate a larger key, you can use the -b option. For example, '''ssh-keygen -b 4096'''. [https://www.ssh.com/academy/ssh/putty/windows/puttygen Click here to view instructions for Windows (ssh.com)] | 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). 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'''. [https://www.ssh.com/academy/ssh/putty/windows/puttygen Click here to view instructions for Windows (ssh.com)] | ||
[[File:2631262.png|600px]]<br><br> | [[File:2631262.png|600px]]<br><br> |
Revision as of 16:55, 30 October 2023
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). 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. SFTP Clients 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 helpdesk@go-redrock.com. |