Skip to content

SSH key creation

lrickerman edited this page Oct 14, 2022 · 2 revisions
  1. To generate an SSH key, use the following command: ssh-keygen -t rsa This will generate two keys, a public and private key. You can choose a location, or if you just hit enter on the prompt for where you want to save the key, it will save in the default location. You can also just hit enter for a passphrase if you do not want a passphrase (extra layer of security – not necessary).

ssh_key

  1. The generated key is now in the directory /home/lyr12/.ssh/. In that directory there is both a public (id_rsa.pub) and private (id_rsa) key. You can view this by typing ‘ls .ssh/’.

  2. The public key is the one that will be copied and put onto the genexus. To copy your public key, type ‘cat .ssh/id_rsa.pub’. You can then highlight the entire key (in my case, starting from ‘ssh-rsa’ and ending with ‘lyr12@HR19582’) and copy the key by holding down ‘ctrl’ + ‘c’. Do not close out of command prompt.

cat_ssh

  1. Open an internet browser (e.g., Google Chrome) and login to your genexus instrument. The URL will be the IP address of the genexus. One of the Wadsworth instruments will be used as an example (IP: 10.49.62.65). The following examples are in Google Chrome.
  2. In the URL bar, type in the IP address and hit enter. A screen will pop up saying that the connection is not private. In this case, click on ‘Advanced’ and then ‘Proceed to 10.49.62.65 (unsafe)’.

connection

  1. Proceed to login to the instrument with your genexus username and password. It is recommended to login as the user ‘ionadmin’.

login

  1. After logging in, look at the top right corner of the homepage and click on the person icon and then ‘My Profile’.

homepage

  1. On the ‘My Profile’ page you will see ‘+ Add SSH Key’ on the right. Click on that button. This is where you will paste the SSH key you had previously copied. If you do not still have the SSH key as the last copied item in your clipboard, return to the command prompt still open and copy it again. The ‘Label’ will be your name and the ‘SSH Key’ will be your entire public key. Click ‘Save’.

add_ssh_key

  1. Now return to your command prompt still open and proceed to WSL data retrieval and transfer.

Next page WSL data retrieval and transfer

Clone this wiki locally