X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/656cf0fc10b40f6a9a76a24bae12f189dffae5e5..01463a6fad519def1d3558ddb9c518a605fc9cc2:/apps/workbench/app/views/users/_manage_ssh_keys.html.erb
diff --git a/apps/workbench/app/views/users/_manage_ssh_keys.html.erb b/apps/workbench/app/views/users/_manage_ssh_keys.html.erb
index 4384041695..17b64b27f9 100644
--- a/apps/workbench/app/views/users/_manage_ssh_keys.html.erb
+++ b/apps/workbench/app/views/users/_manage_ssh_keys.html.erb
@@ -1,39 +1,49 @@
-
Add / Delete SSH Keys
<% if !@my_ssh_keys.any? %>
You have not yet set up an SSH public key for use with Arvados.
-
<%= link_to "Click here to learn about SSH keys in Arvados.",
+
<%= link_to "Click here",
"#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
style: "font-weight: bold",
- target: "_blank" %>
+ target: "_blank" %> to learn about SSH keys in Arvados.
+
When you have an SSH key you would like to use, add it using the Add button.
- <% end %>
-
- <% if @my_ssh_keys.andand.any? %>
-
+ <% else %>
+
-
-
-
+
+
+
Name |
- Public Key |
+ Key Fingerprint |
|
<% @my_ssh_keys.andand.each do |key| %>
-
-
+ |
+
<%= key[:name] %>
|
-
- <%= key[:public_key] %>
+ |
+ <% if key[:public_key] && key[:public_key].size > 0 %>
+
+ <%=
+ begin
+ SSHKey.fingerprint key[:public_key]
+ rescue
+ "INVALID KEY: " + key[:public_key]
+ end
+ %>
+
+ <% else %>
+ <%= key[:public_key] %>
+ <% end %>
|
- <%= link_to(authorized_key_path(id: key[:uuid]), method: 'delete', class: 'btn btn-sm', data: {confirm: "Really delete key"}) do %>
+ <%= link_to(authorized_key_path(id: key[:uuid]), method: 'delete', class: 'btn btn-sm', data: {confirm: "Really delete key?"}) do %>
<% end %>
|
@@ -43,35 +53,3 @@
<% end %>
-
-
-
-
-
Setting up SSH access
-
-Sample ~/.ssh/config
:
-
-
-
-Host *.arvados
- ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
-<% if @my_vm_logins.andand.first %>
- User <%= @my_vm_logins[@my_vm_logins.andand.keys.first].andand.first %>
-<% end %>
-
-
-
-Sample login command:
-
-
-
-ssh <%= @my_virtual_machines.first.andand.hostname.andand.sub('.'+current_api_host,'') or 'vm-hostname' %>.arvados
-
-
-
- See also:
- <%= link_to raw('Arvados Docs → User Guide → SSH access'),
- "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
- target: "_blank"%>.
-
-