Record some commonly used commands
View the public and private keys on this machine
- Enter the .ssh directory:
cd ~/.ssh - Find the xxxx.pub file:
ls - View the public key content:
cat xxxx.puborvim xxxx.pub - The file without an extension with the same name is the private key
SSH login command
ssh -i ~/.ssh/private_key_filename opc@oracle_ip
Switch to the root user after logging in
sudo -i