<% #-- # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2007, 2008 Johan Sørensen # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2009 Fabio Akita # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <%= breadcrumbs_from(@root) -%>

<%= t("views.keys.add_title") %>

<%= error_messages_for :ssh_key -%> <% form_for @ssh_key, :url => user_keys_path() do |f| -%>

<%= f.label :key, t("views.keys.your_public_key") -%>
<%= t("views.keys.hint") %>
<%= f.text_area :key, :class => "text medium" -%>

<%= f.submit t("views.common.save") -%> <% end -%>

SSH key help

For Windows users:
If you have MsysGit installed you can generate a SSH key with MsysGit bash. Use command ssh-keygen -t rsa. Then open the public key (in notepad for example) and copy and paste the file contents to the form on the left.

If you don't have MsysGit installed, or you want to generate the key with a graphical interface, you can use <%= link_to "PuttyGen (puttygen.exe)", "http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe" -%>. In trouble, see <%= link_to "instructions", "http://www.plcs-resources.org/plcs/dexlib/help/dex/sw_putty.htm#Generateandsaveapublic/privatekeypair" -%>.

For Linux users:
The public key is generally located in ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.pub. If not, you can generate the key with command ssh-keygen -t rsa. When finished, you can view the key with command cat ~/.ssh/id_rsa.pub and then copy it to the form on the left.