Started with key creation step
This commit is contained in:
18
seqs/ssh.sh
Normal file → Executable file
18
seqs/ssh.sh
Normal file → Executable file
@@ -1,10 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
toolName="ssh"
|
||||
toolIdentity="~/.ssh/id_rsa"
|
||||
|
||||
aList=""
|
||||
aHost=""
|
||||
# default ssh port
|
||||
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_alias() { ALIAS="send"; }
|
||||
step_10() {
|
||||
@@ -104,5 +120,5 @@ f|/sourcedir/sourcefile|/destdir/destfile
|
||||
f|/sourcedir/sourcefile|/destdir/destfile
|
||||
u|/destdir2/update.sh"
|
||||
|
||||
VERSION_SEQREV=5
|
||||
VERSION_SEQREV=6
|
||||
. sequencer.sh
|
||||
|
Reference in New Issue
Block a user