Started with key creation step

This commit is contained in:
2019-11-20 23:09:29 +01:00
parent f5193f46ee
commit 46b6839f50

18
seqs/ssh.sh Normal file → Executable file
View File

@@ -1,10 +1,26 @@
#!/bin/bash #!/bin/bash
toolName="ssh"
toolIdentity="~/.ssh/id_rsa"
aList="" aList=""
aHost="" aHost=""
# default ssh port # default ssh port
aPort="22" aPort="22"
step_3_info() { echo "Create $toolName authentication keys"; }
step_3_alias() { ALIAS="create"; }
step_3() {
exep "ssh-keygen -l -f $toolIdentity 2>>/dev/null"
if [ $? -ne 0 ]; then
saveReturn 1
else
saveReturn 1
fi
endReturn -f "Identity found. Skipping creation"
echo "Creating..."
}
step_10_info() { echo "Update remote(s) [CMDLIST] <USER:HOST>"; } step_10_info() { echo "Update remote(s) [CMDLIST] <USER:HOST>"; }
step_10_alias() { ALIAS="send"; } step_10_alias() { ALIAS="send"; }
step_10() { step_10() {
@@ -104,5 +120,5 @@ f|/sourcedir/sourcefile|/destdir/destfile
f|/sourcedir/sourcefile|/destdir/destfile f|/sourcedir/sourcefile|/destdir/destfile
u|/destdir2/update.sh" u|/destdir2/update.sh"
VERSION_SEQREV=5 VERSION_SEQREV=6
. sequencer.sh . sequencer.sh