X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c96db8766d22832ac19d260377d0fa747a657dd1..9816d2cf5f88d19e4e492c1e965874e5a5b3055c:/apps/workbench/app/views/users/_manage_virtual_machines.html.erb diff --git a/apps/workbench/app/views/users/_manage_virtual_machines.html.erb b/apps/workbench/app/views/users/_manage_virtual_machines.html.erb index 36cab183f3..d5d9f524b1 100644 --- a/apps/workbench/app/views/users/_manage_virtual_machines.html.erb +++ b/apps/workbench/app/views/users/_manage_virtual_machines.html.erb @@ -1,13 +1,60 @@ -
+
+ + +

For more information see <%= link_to raw('Arvados Docs → User Guide → SSH access'), "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", - target: "_blank"%>. A sample ~/.ssh/config entry is provided below. + target: "_blank"%>. + <% if @my_virtual_machines.any? or true %> + A sample ~/.ssh/config entry is provided below. + <% end %>

<% if !@my_virtual_machines.any? %> - You do not seem to have access to any virtual machines. If you would like to request access, please contact your system admin. +
+
+

+ You do not have access to any virtual machines. Some + Arvados features require using the command line. You may + request access to a hosted virtual machine with the command + line shell. +

+
+ <%= link_to({ + action: 'request_shell_access', + controller: 'users', + id: current_user.uuid + }, + method: :post, + remote: true, + class: 'btn btn-xs btn-primary', + data: { + disable_with: "Sending request...", + on_error_hide: '.no_shell_access .alert-success', + on_error_show: '.no_shell_access .alert-danger', + on_error_write: '.no_shell_access .alert-danger .error-text', + on_success_hide: '.no_shell_access .alert-danger', + }) do %> + Send request for shell access + <% end %> +
+
+ + +
<% else %> + @@ -44,7 +91,10 @@

~/.ssh/config:

Host *.arvados
+      TCPKeepAlive yes
+      ServerAliveInterval 60
       ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
     
<% end %> +