Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 93a1cc2e36 | |||
| 0e7f2b0d33 |
1 changed files with 2 additions and 0 deletions
|
|
@ -29,4 +29,6 @@ chsh -s $SET_SHELL
|
||||||
# Cloud image generates this file which prevents sshd from accepting passwords
|
# Cloud image generates this file which prevents sshd from accepting passwords
|
||||||
rm -f /etc/ssh/sshd_config.d/50-cloud-init.conf
|
rm -f /etc/ssh/sshd_config.d/50-cloud-init.conf
|
||||||
|
|
||||||
|
echo "ForceCommand cd /srv/stack; exec $SET_SHELL -l" > /etc/ssh/sshd_config.d/99-custom.conf
|
||||||
|
|
||||||
exec /usr/sbin/sshd -E /var/log/sshd.log -D
|
exec /usr/sbin/sshd -E /var/log/sshd.log -D
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue