You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

A quick way to add additional RSA public keys for authentication

APPLIES TO:

Linux OS - Oracle Linux 7, Oracle Linux 8 and Oracle Linux 9.

Oracle Cloud Infrastructure and on premises.

Linux x86-64

GOAL:

Add additional RSA public keys for authentication.NOTE: It requires SSH access so if access has been lost, then this document is not for you.You will also need to have permissions on <user> home directory.

SOLUTION:

LINUX TO LINUX:

cat <pubkey> | ssh -i <priv key> <user>@<ip add> 'cat >> .ssh/authorized_keys' 

WINDOWS to LINUX:

type <pubkey> | ssh -i <privkey> <user>@<ip> 'cat >> .ssh/authorized_keys'

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!