Please consider registering
September 30, 2012
I need to install Oracle 11.2 on RHEL 5 Amazon (AWS) instance. When log in as user oracle su – oracle and try to start installer i got next error:
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).
1. This happen because i connected to instance as root and identification key generated for root user not for oracle. To fix it need to generate key for oracle user and connect to instance with it.
# cd ~oracle
# ssh-keygen -f oracle
# mkdir .ssh
# chmod 700 .ssh
# chown oracle:oinstall .ssh
# cat oracle.pub >> .ssh/authorized_keys
# chmod 600 .ssh/authorized_keys
# chown oracle:oinstall .ssh/authorized_keys
2. Copy oracle (primary key) file to server from where you will connect (windows 2012 in my case) and convert it to ppk file
(without passphrase) with puttygen.exe utility. Download it from internet if you dont have it.
Conversions => Import Key
Search for the id_rsa key on you computer
Click on “Save Private Key” and “Yes” to save without a passphrase.
Choose a location and a name for the new .ppk key
3. Connect with new key to server. I use MobaXterm
# ssh -Y -i "c:\oracle.ppk" email@example.com
-Y enables Authentication for X11
-i path to key file
10.10.2.1 IP of your AWS instance
Most Users Ever Online: 31
Currently Browsing this Page:
Guest Posters: 0
Newest Members: Lo0oM
Administrators: Lo0oM (217)