We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkdir -p /run/sshd sed -Ei 's/#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config useradd --uid 1000 --user-group --create-home --shell /bin/bash user || true echo -e '1234\n1234' | passwd root echo -e '1234\n1234' | passwd user if [[ ! -f ~/.ssh/id_rsa.pub ]]; then mkdir -p ~/.ssh/ ssh-keygen -A fi if [[ ! -f ~user/.ssh/id_rsa.pub ]]; then su user -c "mkdir -p ~user/.ssh/" su user -c "ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y >/dev/null 2>&1" fi exec "$@"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: