K
K
Kir2016-12-10 12:30:37
linux
Kir, 2016-12-10 12:30:37

How to open port :::5901 on vps?

No packets reach port 5901 at all.
And they reach port 22, the result of the netstat -nltp command gives 2 lines for ssh
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1853/sshd
tcp 0 0 :::22 :::* LISTEN 1853/sshd
and for vnc only
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 2705/Xvnc
how to make the same line appear for vnc ?
tcp 0 0 :::5901 :::* LISTEN 1853/sshd
port only, no address

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2016-12-10
@Kiri9IH

If you don’t know how to cook, then eat doshirak)
service iptables stop

A
Alexander Karabanov, 2016-12-10
@karabanov

ip6tables -A INPUT -p tcp --dport 5901 -j ACCEPT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question