How to Setup SSH Passwordless Login in Linux [3 Easy Steps]
In this example, we will set up SSH password-less automatic login from server 192.168.0.12 as user server1 to 192.168.0.11 with user server2.
Step 1: Create Authentication SSH-Keygen Keys on – (192.168.0.12)
First login into server 192.168.0.12 with user server1 and generate a pair of public keys using the following command.
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/server1/.ssh/id_rsa): [Press enter key]
Created directory '/home/server1/.ssh'.
Enter passphrase (empty for no passphrase): [Press enter key]
Enter same passphrase again: [Press enter key]
Your identification has been saved in /home/server1/.ssh/id_rsa.
Your public key has been saved in /home/server1/.ssh/id_rsa.pub.
The key fingerprint is:
5f:ad:40:00:8a:d1:9b:99:b3:b0:f8:08:99:c3:ed:d3 server1@tecmint.com
The key's randomart image is:
+--[ RSA 2048]----+
| ..oooE.++|
| o. o.o |
| .. . |
| o . . o|
| S . . + |
| . . . o|
| . o o ..|
| + + |
| +. |
+-----------------+
Step 2: Upload SSH Key to – 192.168.0.11
Use SSH from server 192.168.0.12 and upload a new generated public key (id_rsa.pub) on server 192.168.0.11 under server1 2.ssh directory as a file name authorized_keys.
$ ssh-copy-id server2@192.168.0.11
Step 3: Test SSH Passwordless Login from 192.168.0.12
From now onwards you can log into 192.168.0.11 as server2 user from server 192.168.0.12 as a server1 user without a password.
Here -i is the DB home id, -h is the help option, -j is the JSON option
[root]# dbcli describe-dbhome -i 52850389-228d-4397-bbe6-102fda65922b
DB Home details
ID: 112850389-228d-4397-bbe6-102fda65933b
Name: OraDB12102_home1
Version: 12.1.0.2
Home Location: /u01/app/oracle/product/12.1.0.2/dbhome_1 Created: June 29, 2020 4:36:31 AM UTC
How to list Db homes
dbcli list-dbhomes [-h] [-j]
Here -h is the help option, -j is the JSON option
[root]# dbcli list-dbhomes ID Name DB Version Home Location ------------------------------------ ----------------- ---------- ------------------------------------------ b727bf80-c99e-4846-ac1f-28a81a725df6 OraDB12102_home1 12.1.0.2 /u01/app/orauser/product/12.1.0.2/dbhome_1 January 19, 2017 10:03:31 AM PST January 19, 2017
How to create a new Oracle Home
dbcli create-dbhome --version 12.1.0.2.180417
Job details
ID: f9c48b8d-c00a-433d-8846-969290af4e81
Description: Database Home OraDB12201_home2 creation with version :12.1.0.2.180417
Status: Created
Created: Sep 20, 2020 8:16:53 PM UTC
Message: Create Database Home
To verify the status of Database Software Installation. You can describe the job using
dbcli describe-job -i
dbcli describe-job -i f9c48b8d-c00a-433d-8846-969290af4e81
Job details
ID: f9c48b8d-c00a-433d-8846-969290af4e81
Description: Database Home OraDB12201_home2 creation with version :12.2.0.1.180417
Status: Success
Created: Sep 20, 2020 8:16:53 PM UTC
Message: Create Database Home
After successful completion, you can execute dbcli list-dbhomes to verify the ORACLE HOME location
Job details ID: 493e703b-46ef-4a3f-909d-bbd123469bea Description: DB Home Patching: Home Id is e1877dac-a69a-40a1-b65a-d5e190e671e6 Status: Running Created: January 19, 2017 10:03:21 AM PST Message:
How to list jobs with dbcli
dbcli list-jobs
TDE Commands
The following commands are available to manage TDE-related items (backup reports, keys, and wallets):
The following commands are to perform administrative actions on the DB system:
dbadmcli manage diagcollect dbadmcli power dbadmcli power disk status dbadmcli show controller dbadmcli show disk dbadmcli show diskgroup dbadmcli show env_hw (environment type and hardware version) (environment type and hardware version) dbadmcli show fs (file system details) (file system details) dbadmcli show storage dbadmcli stordiag
Database Commands(The dbcli create-database command is available on bare metal DB systems only)
The following commands are available to manage databases: