HEX
Server: Apache/2.4.68 (codeit) OpenSSL/4.0.1
System: Linux societies-web 5.4.17-2136.353.3.el8uek.x86_64 #3 SMP Thu Feb 12 09:46:56 PST 2026 x86_64
User: yles (1028)
PHP: 8.3.31
Disabled: exec,shell_exec,passthru,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,symlink,pcntl_exec
Upload Files
File: //opt/container-templates/Spades-Dockerfile-django-shell
FROM oraclelinux:9

# Install SSH server and sudo
RUN dnf update -y && \
    dnf install -y openssh-server openssh-clients sudo && \
    dnf clean all

# Create user spades
RUN useradd -m -s /bin/bash spades && \
    echo "spades:123456" | chpasswd && \
    echo "spades ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

# Create SSH directory and generate host keys
RUN mkdir -p /var/run/sshd && \
    ssh-keygen -A

# Configure SSH
RUN echo "Port 22" > /etc/ssh/sshd_config && \
    echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
    echo "PermitRootLogin no" >> /etc/ssh/sshd_config && \
    echo "UsePAM no" >> /etc/ssh/sshd_config

# Expose SSH port
EXPOSE 22

# Start SSH daemon
CMD ["/usr/sbin/sshd", "-D", "-e"]