X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/61ce85085a98514a5e694fa40b46f4eb432d55f5..abe8fc4c5818165ffb696448c81b3bf1bb5dc1dd:/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 8215f1f907..c6190ec5e1 100644 --- a/apps/workbench/app/views/users/_manage_virtual_machines.html.erb +++ b/apps/workbench/app/views/users/_manage_virtual_machines.html.erb @@ -5,43 +5,48 @@ target: "_blank"%>. A sample ~/.ssh/config entry is provided below.

- - - - - - - - - - - - - - - <% @my_virtual_machines.andand.each do |vm| %> + <% 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. + <% else %> +
Host name Login name Command line
+ + + + + + - - - + + + - <% end %> - -
- <%= vm[:hostname] %> - - <%= @my_vm_logins[vm[:uuid]].andand.compact.andand.join(", ") %> - - <% if @my_vm_logins[vm[:uuid]] %> - <% @my_vm_logins[vm[:uuid]].each do |login| %> - ssh <%= login %>@<%= vm[:hostname] %>.arvados - <% end %> - <% end %> - Host name Login name Command line
- -

~/.ssh/config:

-
Host *.arvados
-  ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
-
+ + + <% @my_virtual_machines.andand.each do |vm| %> + + + <%= vm[:hostname] %> + + + <%= @my_vm_logins[vm[:uuid]].andand.compact.andand.join(", ") %> + + + <% if @my_vm_logins[vm[:uuid]] %> + <% @my_vm_logins[vm[:uuid]].each do |login| %> + ssh <%= login %>@<%= vm[:hostname] %>.arvados + <% end %> + <% end %> + + + <% end %> + + +

~/.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 %>