Skip to content

Commit

Permalink
Update README and spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Oct 29, 2017
1 parent 1fa6b13 commit 733bf8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions README.md
Expand Up @@ -18,17 +18,21 @@ You need to be able to connect to the remote server with username and password.

git clone git://github.com/centic9/generate-and-send-ssh-key

##### Adjust configuration
##### Run it

The script has some variables that you should configure before running the script:
The script expects some commandline arguments which specify which key should be transferred/created:

cd generate-and-send-ssh-key
vi generate-and-send-ssh-key.sh
-u(--user) <username>, default: preis
-f(--file) <file>, default: /home/dstadler/.ssh/id_rsa_preis
-h(--host) <hostname>, default: host
-p(--port) <port>, default:
-k(--keysize) <size>, default: 2048
-t(--keytype) <type>, default: rsa


You should at least set `FILENAME`, `HOST` and `USER`. `FILENAME` should not exist yet as the tool will generate a new key.

##### Run it
You should at least set `--file`, `--host` and `--user`. If the key-file does not exist yet, a new key will be generated.

cd generate-and-send-ssh-key
./generate-and-send-ssh-key.sh

This will ask for the password of the target host at least once, probably twice, if the permissions are not set correctly yet.
Expand All @@ -55,7 +59,7 @@ writing data to this directory they may fail after this script was run.

#### Licensing

Copyright 2015-2016 Dominik Stadler
Copyright 2015-2017 Dominik Stadler

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion generate-and-send-ssh-key.sh
Expand Up @@ -16,7 +16,7 @@ SSH_OPTS="-o PubkeyAuthentication=no"
#

function usage() {
echo "Speciy some parameters, ${1}valid ones are:"
echo "Specify some parameters, ${1}valid ones are:"
echo " -u(--user) <username>, default: ${USER}"
echo " -f(--file) <file>, default: ${FILENAME}"
echo " -h(--host) <hostname>, default: ${HOST}"
Expand Down

0 comments on commit 733bf8d

Please sign in to comment.