-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added instructions for using ACS to copy public key
- Loading branch information
1 parent
ce0f2bb
commit 23f11ef
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,13 +43,25 @@ Press Enter twice to leave the passphrase blank | |
> `-f ~/.ssh/id_rsa-ocean-ssh` specifies the filename of the key | ||
### Copy your public SSH key to IBM i | ||
|
||
#### SSH copy | ||
If password authentication is allowed you can copy your public key using SSH. | ||
Enter the following command to copy your public key to the OC Skunks IBM i: | ||
`$ ssh-copy-id -i ~/.ssh/id_rsa-ocean-ssh %%IBM i Profile%%@OCSKUNKS.oceanusergroup.org` | ||
When prompted, enter your IBM i password. | ||
> `ssh-copy-id` is the command to run (copy id) | ||
> `-i ~/.ssh/id_rsa-ocean-ssh` specifies the identity file | ||
> `[email protected]` is the user and remote server | ||
#### ACS | ||
You can use ACS to copy your public key to IBM i. | ||
Open System Configurations, highlight your system, and press Edit. | ||
Select the SSH Key setup tab, and press the "Copy SSH key(s) to server" button. | ||
|
||
#### Other | ||
Use RDi, nano, or some other editor to add the public key to the authorized_keys file on the server. | ||
The authorized_keys file is located here: /home/YOUR_PROFILE/.ssh | ||
|
||
### Test the SSH connection | ||
Enter the following command to create an SSH connection to the OC Skunks IBM i: | ||
`$ ssh %%IBM i User%%@OCSKUNKS.oceanusergroup.org -i ~/.ssh/id_rsa-ocean-ssh` | ||
|