mirror of
https://github.com/coderofsalvation/podi.git
synced 2026-05-18 05:04:56 +02:00
15 lines
413 B
Plaintext
15 lines
413 B
Plaintext
# installation : run 'podmen recipe sshkey' or put this file into .podman folder
|
|
# example usage: ./podman init git@yourserver
|
|
|
|
init_sshkey(){
|
|
header 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 '~/.ssh/id_rsa_$appname' to collaborate with devs "
|
|
}
|
|
|
|
on init_server init_sshkey
|