mirror of
https://github.com/coderofsalvation/podi.git
synced 2026-02-25 04:31:10 +01:00
16 lines
508 B
Plaintext
16 lines
508 B
Plaintext
# info: generates sshkey to be shared with external developers
|
|
# installation : run 'podi recipe sshkey' or put this file into .podman folder
|
|
# example usage: ./podman init git@yourserver
|
|
|
|
init_sshkey(){
|
|
header .pod/init/server/sshkey
|
|
local key=~/.ssh/id_rsa_$appname
|
|
test -f $key && {
|
|
ssh-keygen -t rsa -N "" -f $key
|
|
ssh-key-copy -p $port -i $key $user@$server
|
|
}
|
|
print "Yay! share key '$server:~/.ssh/id_rsa_$appname' to collaborate with devs "
|
|
}
|
|
|
|
on init_server init_sshkey
|