config/secrets.yml
of your Rails app? The comments generated in that file describe the keys as such:rake secret
for just this purpose.SecureRandom
and spits out a string. If you want to be really clever, you can pipe the string directly into your Vim buffer for the config file, with :.! rake secret
.rake -T secret
inside a Rails root directory for more information.%APPDATA%SSHUserKeys
directory. The private key file has no file extension, and the public key has the same base file name as the private key, but with .pub
as the file extension.%USERPROFILE%.ssh2
on Windows, $HOME/.ssh2
on Unix).Note |
---|
The key user is required to have the write permissions to the to the key directory on the server, otherwise the automatic upload will fail. The administrator of the remote host computer may have restricted user access so that users are not able to configure public-key authentication for themselves even if public-key authentication is allowed in the server configuration. |