mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-23 00:49:42 +00:00
13 lines
193 B
Bash
13 lines
193 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
key="$SSH_PUBLIC_KEY"
|
||
|
|
||
|
if test -z "$key"; then
|
||
|
echo "set SSH_PUBLIC_KEY environment variable first"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
echo "$key" > /etc/ssh/authorized_keys
|
||
|
|
||
|
exec /usr/sbin/sshd -D
|