Article 52FB2 ssh-keygen -d Not working...

ssh-keygen -d Not working...

by
BW-userx
from LinuxQuestions.org on (#52FB2)
I discovered scp to transfer a file to another laptop, I just did it the easiest way for me and selected to use pasword.

did a script
Code:#!/usr/bin/env bash

# format
#scp /home/yourusername/examplefile username2@ip2:/home/username2/

[[ $# < '4' ]] && { echo " need Host path/file, client username, IP and destanation" ;
echo "scp /home/yourusername/examplefile username2@ip2:/home/username2/" ; exit ;}

HostUserFile=$1
ClientName=$2
ClientIP=$3
Destanation=$4

scp "$HostUserFile" "$ClientName"@"$ClientIP":"$Destanation" now I am looking into how can I send more than one file at a time, as well as not keep issuing a Password for each send, scp has this batch mode, (I think might work, by its name) but when I follow the how to's on it that tell me to just

1. https://www.how2s.org/index.php/Howt...h_mode,_scp_-B)
2. https://www.thegeekstuff.com/2009/10...in-is-enabled/

ssh-keygen -d I cannot get to the next step because I get this.
Code:$ ssh-keygen -d
unknown option -- d
usage: ssh-keygen [-q] [-b bits] [-C comment] [-f output_keyfile] [-m format]
[-t dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa]
[-N new_passphrase] [-O option] [-w provider]
ssh-keygen -p [-f keyfile] [-m format] [-N new_passphrase]
[-P old_passphrase]
ssh-keygen -i [-f input_keyfile] [-m key_format]
ssh-keygen -e [-f input_keyfile] [-m key_format]
ssh-keygen -y [-f input_keyfile]
ssh-keygen -c [-C comment] [-f keyfile] [-P passphrase]
ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile]
ssh-keygen -B [-f input_keyfile]
ssh-keygen -D pkcs11
ssh-keygen -F hostname [-lv] [-f known_hosts_file]
ssh-keygen -H [-f known_hosts_file]
ssh-keygen -K [-w provider]
ssh-keygen -R hostname [-f known_hosts_file]
ssh-keygen -r hostname [-g] [-f input_keyfile]
ssh-keygen -M generate [-O option] output_file
ssh-keygen -M screen [-f input_file] [-O option] output_file
ssh-keygen -I certificate_identity -s ca_key [-hU] [-D pkcs11_provider]
[-n principals] [-O option] [-V validity_interval]
[-z serial_number] file ...
ssh-keygen -L [-f input_keyfile]
ssh-keygen -A [-f prefix_path]
ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number]
file ...
ssh-keygen -Q -f krl_file file ...
ssh-keygen -Y find-principals -s signature_file -f allowed_signers_file
ssh-keygen -Y check-novalidate -n namespace -s signature_file
ssh-keygen -Y sign -f key_file -n namespace file ...
ssh-keygen -Y verify -f allowed_signers_file -I signer_identity
-n namespace -s signature_file [-r revocation_file]I'm not savvvy on ssh so what's next?latest?d=yIl2AUoC8zA latest?i=UGjt1kN_xZY:7oXvkOzy1Ck:F7zBnMy latest?i=UGjt1kN_xZY:7oXvkOzy1Ck:V_sGLiP latest?d=qj6IDK7rITs latest?i=UGjt1kN_xZY:7oXvkOzy1Ck:gIN9vFwUGjt1kN_xZY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments