This is a ready-to-work configuration of xinetd to allow multiple GUI VNC connections to Kali Linux server. Every user has its own dedicated VNC port, consequently their session will not be closed after disconnection. In the capacity of VNC server tightvncserver is used. It is also required to create VNC password for every user in home directory: .vncpaswd
VNC traffic is not encrypted, so I highly recommend to connect to VNC server via SSH tunnel.
/etc/xinetd.d/vnc:
service vnc_user
{
disable = no
socket_type = stream
protocol = tcp
wait = yes
user =user
server = /usr/bin/Xtightvnc
server_args = -inetd -once -query localhost -geometry 1024x768 -depth 16 -rfbauth /home/user/.vncpaswd
type = UNLISTED
port = 5900
}
service vnc_user2
{
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = user2
server = /usr/bin/Xtightvnc
server_args = -inetd -once -query localhost -geometry 1024x768 -depth 16 -rfbauth /home/user2/.vncpaswd
type = UNLISTED
port = 5901
}
/etc/gdm3/daemon.conf:
[xdmcp]
Enable = true
VNC traffic is not encrypted, so I highly recommend to connect to VNC server via SSH tunnel.
/etc/xinetd.d/vnc:
service vnc_user
{
disable = no
socket_type = stream
protocol = tcp
wait = yes
user =user
server = /usr/bin/Xtightvnc
server_args = -inetd -once -query localhost -geometry 1024x768 -depth 16 -rfbauth /home/user/.vncpaswd
type = UNLISTED
port = 5900
}
service vnc_user2
{
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = user2
server = /usr/bin/Xtightvnc
server_args = -inetd -once -query localhost -geometry 1024x768 -depth 16 -rfbauth /home/user2/.vncpaswd
type = UNLISTED
port = 5901
}
/etc/gdm3/daemon.conf:
[xdmcp]
Enable = true
No comments:
Post a Comment