Scripting
Generatingan SSH Key

Generating an SSH Key (Powershell)

First make sure SSH is installed by typing ssh into your powershell and hit return.

ssh

All being well it should show you all of the associated SSH options and switches.

C:\Users\userName> ssh usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B
bind_interface] [-b bind_address] [-c cipher_spec] [-D
[bind_address:]port] [-E log_file] [-e escape_char] [-F
configfile] [-I pkcs11] [-i identity_file] [-J
[user@]host[:port]] [-L address] [-l login_name] [-m
mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option]
[-R address] [-S ctl_path] [-W host:port] [-w
local_tun[:remote_tun]] destination [command]

Now we know that ssh is installed run the following command in powershell.

ssh-keygen -b 4096

Now you can hit return through the options of custom file location and leave passphrase options empty.

Now use the cat command to print you public key to the terminal.

cat C:\Users\userName/.ssh/id_rsa.pub

Copy everything from 'ssh-rsa' to 'yourname@hostname' and paste it into your chosen service.