Virtual TapeServer 6.04.03 for NonStop Servers Supplemental Installation Guide

Enabling Instant DR and AutoCopy | 19
4. Set up and edit the /home/bill/.rhosts file to define aliases for the IP addresses. Perform
this step for each source VTS server.
a. At the command prompt, log in.
b. Become root:
su -
c. Create the /home/bill/.rhosts file.
d. Enter chown bill /home/bill/.rhosts to change the ownership of the file to bill.
e. Enter chmod 600 /home/bill/.rhosts to set the privileges to read and write for bill.
f. Open the /home/bill/.rhosts file for editing using a text editor, such as vi.
g. Scroll down to the last line in the file.
h. Add the name of all other VTS servers in this file. For example, on the Los Angeles
VTS server, enter boston.
i. Save and exit the file.
5. Set up and authorize secure shell (SSH) if you are configuring VTS for AutoCopy or if you
wish to secure communication for Instant DR.
a. At the command prompt, become bill:
su - bill
b. Export the SSH socket by entering this command:
ssh-agent
Here is an example of the output:
# SSH_AUTH_SOCK=/tmp/ssh-vHYet13854/agent.13854; export
SSH_AUTH_SOCK;
# SSH_AGENT_PID=13855; export SSH_AGENT_PID;
c. Copy and paste the output to the command line, to run the commands.
d. Generate an authorization key for SSH for the target server, to authorize remote
access for the bill user:
ssh-keygen -t rsa
e. Press ENTER to save the file in the default location. This step creates the /home/bill/
.ssh/ directory.
f. Press ENTER to skip the pass phrase.
g. Press ENTER to verify skipping the pass phrase.
h. Copy the generated authorization key to the target server (boston):
ssh-copy-id –i /home/bill/.ssh/id_rsa.pub bill@boston
i. When prompted, enter yes.
j. Enter the password for the bill user at the destination server.
Note If problems arise when using SSH with the target server, you can remove the
/home/bill/.ssh/known_hosts and /home/bill/.ssh/authorized_keys files from
the target and source servers and repeat the steps above.