2 <h4>Add / Delete SSH Keys</h4>
3 <% if !@my_ssh_keys.any? %>
4 <p> You have not yet set up an SSH public key for use with Arvados. </p>
5 <p> <%= link_to "Click here to learn about SSH keys in Arvados.",
6 "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
7 style: "font-weight: bold",
8 target: "_blank" %> </p>
9 <p> When you have an SSH key you would like to use, add it using the <b>Add</b> button. </p>
12 <% if @my_ssh_keys.andand.any? %>
13 <table class="table virtual-machines-table">
15 <col style="width: 15%" />
16 <col style="width: 80%" />
17 <col style="width: 5%" />
27 <% @my_ssh_keys.andand.each do |key| %>
29 <td style="word-break:break-all;">
32 <td style="word-break:break-all;">
33 <%= key[:public_key] %>
36 <%= link_to(authorized_key_path(id: key[:uuid]), method: 'delete', class: 'btn btn-sm', data: {confirm: "Really delete key"}) do %>
37 <i class="fa fa-fw fa-trash-o"></i>
50 <h4>Setting up SSH access</h4>
52 Sample <code>~/.ssh/config</code>:
57 ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
58 <% if @my_vm_logins.andand.first %>
59 User <%= @my_vm_logins[@my_vm_logins.andand.keys.first].andand.first %>
68 ssh <%= @my_virtual_machines.first.andand.hostname.andand.sub('.'+current_api_host,'') or 'vm-hostname' %>.arvados
73 <%= link_to raw('Arvados Docs → User Guide → SSH access'),
74 "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",