Oracle Apps DBA

My photo
More than 5+ Years of IT Experience in administering Enterprise wide Multi Vendor UNIX Servers, Oracle Databases (8i to 11gR2), Middle-tiers, Applications and Clusters. I am a Sun Certified System Administrator (SCSA) for Solaris 10, oracle 10g database certified associate(OCA), Oracle 10g Database certified professional (OCP) and Oracle E-Business suite R12 certified professionl(OCP)

Oracle Database and Applications

Monday, 20 June 2011

The X11 forwarding request was rejected! solaris 10

When i was trying to connect to one of Solaris 10 server using xmanager then it was unable to connect displaying error message "The X11 forwarding request was rejected!"

Error screen:




cause:

In sshd configuration file X11Forwarding option was disabled

Solution:

step1



cat /etc/ssh/sshd_config | grep X11
# X11 tunneling options
X11Forwarding no
X11DisplayOffset 10

bash-3.00# cat /etc/ssh/sshd_config | grep ListenAddress
# Multiple ListenAddress entries are allowed.
#ListenAddress 0.0.0.0
ListenAddress :: #This if for IPV4 and IPv6



change above values as below in /etc/ssh/sshd_config file :



X11Forwarding yes

#ListenAddress :: #(comment this line)
ListenAddress 0.0.0.0 #(uncomment this entry) - if not exist in file add it.




Step 2


add -4 option for ssh command:




original entry


# SMF arguments (start and restart [really "refresh"])
'start')
/usr/lib/ssh/sshd
;;


update entry

# SMF arguments (start and restart [really "refresh"])
'start')
/usr/lib/ssh/sshd -4
;;



Step 3

restart ssh daemon an verify its running:



bash-3.00# svcadm restart ssh

bash-3.00# svcs ssh
STATE STIME FMRI
online 10:08:39 svc:/network/ssh:default
bash-3.00#



After this you should be able to login to server via xmanager using ssh .

Happy reading :)

No comments: