<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div dir="ltr"></div>
<div dir="ltr">I cannot think of any way to do this within the Slurm configuration </div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I would solve this by having a wrapper run at boot time which started a new sshd process on a different port which you secured (ie only that user could connect) and then start this as part of your boot time scripts</div>
<div dir="ltr">If your script was started on one of your ‘special’ machines, start the second instance of sshd…..if not, do nothing</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Hope that helps</div>
<div dir="ltr"><br>
<blockquote type="cite">On 12 Jul 2022, at 05:53, Ratnasamy, Fritz <fritz.ratnasamy@chicagobooth.edu> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">Hello, <br>
<br>
Currently, our cluster does not allow ssh to compute nodes for users unless they have
<div>a running job on that compute node. I believe a system admin has set up a PAM module</div>
<div>that does the block. Whn trying ssh, this is the message returned:<br>
Access denied by pam_slurm_adopt: you have no active jobs on this node<br>
Connection closed by 10.135.242.188 port 22<br>
</div>
<div><br>
</div>
<div>However, we would like to allow sftp on a specific compute node for specific users. <br>
Any idea on how to do that? <br>
Thanks, </div>
<div><br>
</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<b><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#9c1d21">Fritz Ratnasamy</span></b><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"></span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#9c1d21">Data Scientist</span><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"></span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#9c1d21">Information Technology</span><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"></span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="color:rgb(103,110,115);font-family:Times,serif;font-size:10.5pt">The University of Chicago</span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"></span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="font-size:10.5pt;font-family:"Times",serif;color:#676e73">Booth School of Business</span><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"></span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="font-size:10.5pt;font-family:"Times",serif;color:#676e73">5807 S. Woodlawn</span><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"></span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="font-size:10.5pt;font-family:"Times",serif;color:#676e73">Chicago,</span><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"> </span><span style="font-size:10.5pt;font-family:"Times",serif;color:#676e73">Illinois</span><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"> </span><span style="font-size:10.5pt;font-family:"Times",serif;color:#676e73">60637</span></p>
<p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial">
<span style="font-size:10.5pt;font-family:"Times",serif;color:#676e73">Phone: +(1) 773-834-4556</span><span style="font-size:10.5pt;font-family:"Helvetica Neue";color:#333333"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>