My Oracle Support Banner

VNC Connection Not Working On SSH Tunnel - Error sshd[XX]: Refused Local Port Forward: Originator 0.0.0.0 port 0, Target localhost Port 5901 (Doc ID 2524646.1)

Last updated on MAY 11, 2020

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Linux OS - Version Oracle Linux 6.0 to Oracle Linux 7.6 [Release OL6 to OL7U6]
Linux x86-64

Symptoms

 

ssh tunnel  :

[User@Desktop$ ssh -i <PRIVATE KEY > opc@<PUBLIC IP>  -L 1234:localhost:5901
Last login: Fri Mar 29 17:41:13 2019 from 209.17.40.41
[opc@ol7maupostfix ~]$ 
channel 3: open failed: administratively prohibited: open failed   <==

 

/var/log/secure :

Mar 29 17:41:40 localhost sshd[7529]: refused local port forward: originator ::1 port 33366, target localhost port 5901  <==
Mar 29 17:42:00 localhost sshd[7529]: refused local port forward: originator ::1 port 33372, target localhost port 5901
Mar 29 17:45:43 localhost sshd[7762]: refused local port forward: originator ::1 port 49366, target localhost port 5901
Mar 29 17:47:20 localhost sshd[8447]: refused local port forward: originator ::1 port 49386, target localhost port 5901

 

Changes

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.