About this task
The objective of this example is to set up two nodes in Console to transfer files
from one node to the other using public key authentication.
- User A: Transfer user found on Node A.
- User B: Transfer user found on Node B.
- Node A: The node initiating the transfer. This node holds the
private key.
- Node B: The node receiving the files. This node holds the public
key matching the private key in Node A. We set up an endpoint using SSH keys for
this node.
Note: For the purpose of this example, both nodes are Linux
machines.
Procedure
-
Generate a private key as User A on Node A with the following command:
# ssh-keygen -t rsa -m PEM
Choose the
default location to store this new private key (Default is
~/.ssh).
-
Make sure User A has read and write permissions for the private key
file.
$ chmod 600 ~/.ssh/id_rsa
$ chmod 644 ~/.ssh/id_rsa.pub
-
Copy the SSH public key into User B's authorized_keys file on Node
B.
# cat ~/.ssh/id_rsa.pub >> ~./ssh/authorized_keys
-
In Console, add Node A as a managed node and Node B as an unmanaged node.
-
Go to Configuration > SSH Keys and upload the private
key to Console. This key should be paired with the public key copied to Node
B.
-
Go to Nodes and edit Node B. Click
Endpoints and add a new endpoint. Choose to use the
SSH key that was uploaded to Console.
-
Make a transfer from User A on Node A to the saved endpoint on Node B.