Getting VPS vnc working

I have installed tigervnc, xrdp on VPS and some other stuff I can’t remember

and on client I have:
putty, tigervnc

I’m have hard time making it work for a week now.

sudo systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
     Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; preset: disabled)
     Active: active (running) since Sat 2022-11-26 17:31:49 +01; 1s ago
    Process: 1043 ExecStart=/usr/bin/vncsession-start :1 (code=exited, status=0/SUCCESS)
   Main PID: 1050 (vncsession)
      Tasks: 0 (limit: 1122)
     Memory: 644.0K
        CPU: 24ms
     CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
             ‣ 1050 /usr/bin/vncsession guest :1

Nov 26 17:31:49 vps190880 systemd[1]: Starting Remote desktop service (VNC)...
Nov 26 17:31:49 vps190880 systemd[1]: Started Remote desktop service (VNC).

when I try to get in with terminal from client:

ssh 82.221.139.102 -L 5901:localhost:5901
marko@82.221.139.102's password: 
Permission denied, please try again.
marko@82.221.139.102's password: 
Permission denied, please try again.
marko@82.221.139.102's password: 
marko@82.221.139.102: Permission denied (publickey,password).

don’t know if I’m even getting anything correct here or if I’m even trying to get correct password.
I’m clueless here where should I move forward.

if I try with tigervnc I get:

unable to connect to socket: Connection refused(111)

any help would be apreciated

I’m completely newbie here.

The best method is VNC over SSH

I’m checking the link

and have a q

should be:

session=$SESSION

$SESSION = xfce4

or?

ok but vnc doesn’t work for me don’t know why

You need til use the corect name as provided by available session desktop file(s)

how do I know correct desktop file?

Remember guides are not word2word - replace variables with your actual values

Also provided in the mentioned guide

ls /usr/share/xsessions

ok thanks I managed to get step forward but I get:

the connection was dropped by server before the session could be established

looking at other docs:

I seem not to have vnc-server installed nor I don’t know how to.

I have tigervnc on both client and server

config looks like this:

xsession=xfce.desktop
geometry=1920x1080
localhost
dpi=96

in terminal where I open SSH I get:
channel 3: open failed: connect failed: Connection refused

Please retrace your steps - the aforementioned guide provide a working setup - don’t think you cannot skip any of the steps.

You need to have a working SSH service on the remote system - so if have not the message is to be expected

Follow the SSH guide - also referenced in the aforementioned guide.