11 lines
185 B
Bash
11 lines
185 B
Bash
#!/bin/bash
|
|
|
|
echo $PUBLIC_KEY >> ~/.ssh/authorized_keys
|
|
chmod 700 -R ~/.ssh
|
|
|
|
# Start the SSH service in the background
|
|
service ssh start
|
|
|
|
# Execute the passed arguments (CMD)
|
|
exec "$@"
|