this is exactly what our users do via interactive jobs (but with HTCondor). Did you check if this works or can be made to work with Slurm?
Maybe your admins can offer this?
I don't see how an ssh to localhost tests anything related to firewall setup?
Did you try to run sshd manually instead of using systemd as I mentioned?
> To unsubscribe from this group and stop receiving emails from it, send an email to singu...@lbl.gov <mailto:singularity+unsub...@lbl.gov>.
> > singu...@lbl.gov <javascript:>>.
> > > To view this discussion on the web visit
> > https://groups.google.com/a/lbl.gov/d/msgid/singularity/d74ad067-3c38-40ca-97ab-adeb2a891e7f%40lbl.gov
> > <
> > https://groups.google.com/a/lbl.gov/d/msgid/singularity/d74ad067-3c38-40ca-97ab-adeb2a891e7f%40lbl.gov?utm_medium=email&utm_source=footer >.
> >
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "singularity" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to singu...@lbl.gov.
this?
jose@koios2:~/projects/container-recipes/generic_containers$ cat
centos7_w_ssh.def
BootStrap: docker
From: centos:7
#singularity file -----------------------
%post
yum -y install yum-utils openssh-server
ssh-keygen -A
#my user:
echo "+:jose:ALL" > /etc/security/access.conf
# disable root tweaks. Works with openssh7, not with8
echo "UsePrivilegeSeparation no" > /etc/ssh/sshd_config
find /etc/ssh/ -type d -exec chmod 755 {} +
find /etc/ssh/ -type f -exec chmod 644 {} +
#singularity file -----------------------
run with:
singularity exec centos7_w_ssh.sif /usr/sbin/sshd -p 12121 -D -d -e
connect: (as there is automounted home, there is already
authorized_keys with my key..)
ssh localhost -p 12121
The authenticity of host '[localhost]:12121 ([::1]:12121)' can't
be established.
ECDSA key fingerprint is
SHA256:K8gLCw1b9ZicrCXdhh/V68XvuI9bTeHjY3XL3dxuTvk.
ECDSA key fingerprint is
MD5:40:38:54:e0:95:c3:d1:e9:23:ab:b6:d9:d7:74:6d:36.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:12121' (ECDSA) to the list
of known hosts.
Attempt to write login records by non-root user (aborting)
Environment:
USER=jose
LOGNAME=jose
HOME=/home/users/jose
PATH=/usr/local/bin:/usr/bin
MAIL=/var/mail/jose
SHELL=/bin/sh
SSH_CLIENT=::1 57690 12121
SSH_CONNECTION=::1 57690 ::1 12121
SSH_TTY=/dev/pts/17
TERM=screen
-sh-4.2$ Connection to localhost closed by remote host.
Connection to localhost closed.
Josef Dvoracek Institute of Physics @ Czech Academy of Sciences cell: +420 608 563 558 | office: +420 266 052 669 | fzu phone nr. : 2669
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/singularity/a5f0ce96-7500-47fc-8d10-52db928278d4%40lbl.gov.