My Headlines
Here's a simple approach to setting up SSH (Secure SHell) equivalency across 2 UNIX boxes. This is also known as "using SSH and SCP without passwords".
There are a variety of reasons to setup SSH equivalency across UNIX boxes. I assume you already have a desire to do so or you would not be reading this, so let's skip the sales patch and get to the howto part.
While there are scripts that do this for you (especially if you're doing this for OEM setup), this is really easy to do on your own, so forget those kludgey scripts!
NOTE: I'm using "UNIX01" and "UNIX02" below to represent 2 different UNIX boxes along with user "oracle" - you can use whatever user you want, just ensure it's the same on both boxes.
STEPS:
Test your setup as follows:
Now you can use scp and other ssh commands with ease!
There are a variety of reasons to setup SSH equivalency across UNIX boxes. I assume you already have a desire to do so or you would not be reading this, so let's skip the sales patch and get to the howto part.
While there are scripts that do this for you (especially if you're doing this for OEM setup), this is really easy to do on your own, so forget those kludgey scripts!
NOTE: I'm using "UNIX01" and "UNIX02" below to represent 2 different UNIX boxes along with user "oracle" - you can use whatever user you want, just ensure it's the same on both boxes.
STEPS:
- On UNIX01:
- Create $HOME/.ssh, if it does not already exist
- $ cd $HOME/.ssh
- Generate your RSA key (NOTE: Your path may vary!)
- /usr/bin/ssh-keygen -t rsa
- When prompted for a passphrase, just press (ENTER) (leave it blank)
- Generate your DSA key
- /usr/bin/ssh-keygen -t dsa
- When prompted for a passphrase, just press (ENTER) (leave it blank)
- Store the 2 keys into the authorized_keys file
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
- On UNIX02:
- Repeat steps 1-5 above
- On UNIX01:
- Copy the 2 lines from authorized_keys on UNIX02
- Add them to the authorized_keys file
- On UNIX02:
- Copy the 2 lines from authorized_keys on UNIX01
- Add them to the authorized_keys file
Test your setup as follows:
- [oracle@UNIX01] $ ssh -l oracle unix02 date
Now you can use scp and other ssh commands with ease!
Subscribe to:
Post Comments (Atom)
Popular Posts
-
What is ENUM? ENUM is short for enumeration. Its a useful programming type that contains an ordered list of string values. The program...
-
A colleague asked me some questions about FIRST_ROWS and ALL_ROWS, but I'm hesitant to blog about it because it's already been done...
-
Dear Blog Readers, Every now and then I do receive e-mails from the novice DBAs saying that: “We could not perform well at the interview...
-
HowTo: Create a universal UDM report page in OEM PROBLEM: You have a bunch of User Defined Metrics (UDM) setup in OEM, and you want to kn...
-
Have you run the new Oracle 11g installer on *NIX and received a nasty message? It happened to me this week! So, let's say you downloa...
-
REM:********************************************************************************************** REM: Script : Max 50 I/O Informations R...
-
What is NOCOPY? 'NOCOPY' is an optional 'hint' to tell the PL/SQL 'compiler' not to go through the overhead of ma...
-
This blog post is for them; those who are desperately looking for free Oracle Certification dumps. Well, you might be surprised to see the...
-
I was browsing the Oracle Forums earlier today and this post with a bit of SQL to clear OEM alerts from mnazim , who always has good advice...
-
Having chosen Oracle SQL Developer as your preferred Oracle database tool, do you have to install and learn a new technology for supporting...
0 comments:
Post a Comment