<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>A couple suggestions:</p>
<p>1) You could use a gui (run X and vncserver so they can connect
and have a desktop) <br>
</p>
<p>2) You could run something like Jupyter an have them connect to
that. <br>
</p>
<p>Either method would allow them to connect via ssh as long as the
'job' is running. I use both for different users/groups.<br>
</p>
<p>Brian Andrus<br>
</p>
<div class="moz-cite-prefix">On 6/9/2022 5:19 PM, Willy Markuske
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5aa61a6a-e533-e67b-97c5-3a21793b7fea@sdsc.edu">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hello All,</p>
<p>I have a request from users for the ability to have persistent
interactive jobs. Currently some users are using srun to
allocate and interactive job and run their scripts but sshd will
close connections after 2 hours to prevent hanging ssh
connections. They want to spawn an R or python shell to work in
directly for testing.<br>
</p>
<p>I've attempted to use salloc and ssh to attach to the job but
allocations are relinquished when the user leaves the submit
node. Is there an easy way for a user to create a job allocation
that spawns a terminal they can attach and unattach from? I'm
looking at different ways to create a job that will spawn tmux
and stay open, but it would be great if there was a way to
directly attach/dettach to the output of a spawned terminal they
could just ssh too.</p>
<p>Regards,<br>
</p>
<div class="moz-signature">-- <br>
<title></title>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td width="150" valign="top" height="30" align="left">
<p style="font-size:14px;">Willy Markuske</p>
</td>
</tr>
<tr>
<td style="border-right: 1px solid #000;" align="left">
<p style="font-size:12px;">HPC Systems Engineer</p>
</td>
<td rowspan="3" width="180" valign="center" height="42"
align="center"><tt><img moz-do-not-send="false"
src="cid:part1.7BXtTwNn.SZrbw4m3@gmail.com" alt=""
class="" width="168" height="48"></tt> </td>
</tr>
<tr>
<td style="border-right: 1px solid #000;" align="left">
<p style="font-size:12px;">Research Data Services</p>
</td>
</tr>
<tr>
<td style="border-right: 1px solid #000;" align="left">
<p style="font-size:12px;">P: (619) 519-4435</p>
</td>
</tr>
</tbody>
</table>
<p> </p>
</div>
</blockquote>
</body>
</html>