neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.74k stars 1.73k forks source link

unknown protocol version, can't use x11rdp #115

Closed Condorello closed 7 years ago

Condorello commented 10 years ago

Hi, I can't use x11rdp, here the sesman log:

[20140319-19:56:55] [WARN ] [init:46] libscp initialized [20140319-19:56:55] [CORE ] starting sesman with pid 514 [20140319-19:56:55] [INFO ] listening... [20140319-19:58:08] [INFO ] A connection received from: 127.0.0.1 port 48181 [20140319-19:58:08] [INFO ] scp thread on sck 7 started successfully [20140319-19:58:08] [WARN ] unknown protocol version specified. connection refused. [20140319-19:58:08] [INFO ] An established connection closed to endpoint: 127.0.0.1:48181 - socket: 7

everything works fine if i use x11vnc. I compilate latest git without errors on centos 6. I cannot find more info about this error in any logs, someone can help me? Thanks in advance.

jsorg71 commented 10 years ago

First, make sure you can run X11rdp at a command prompt. X11rdp :15 and see what happens.

Condorello commented 10 years ago

InitOutput:

X11rdp, an X server for xrdp Version 0.7.0 Copyright (C) 2005-2012 Jay Sorg See http://xrdp.sf.net for information on xrdp. Underlying X server release 10903000, The X.Org Foundation Screen width 1024 height 768 depth 24 bpp 32 dpix 100 dpiy 100 buffer size 3145728 19/03/14 20:22:55 kill disconencted [0] timeout [60] sec pRRScrPriv 0x1c56330 rdpScreenInit: ret 1 InitOutput: out rdpSpriteDeviceCursorInitialize: rdpPointerWarpCursor: rdpPointerNewEventScreen: InitInput: rdpMouseCtrl: rdpChangeKeyboardControl: rdpChangeKeyboardControl:

and stay here until ctrl+c

thanks for your help!

nicolar commented 10 years ago

Uhm it seems something related to sesman/svc. Try to run sesman in foreground and have a look to the stdout.

Nicola Il 19/mar/2014 20:01 "Condorello" notifications@github.com ha scritto:

Hi, I can't use x11rdp, here the sesman log:

[20140319-19:56:55] [WARN ] [init:46] libscp initialized [20140319-19:56:55] [CORE ] starting sesman with pid 514 [20140319-19:56:55] [INFO ] listening... [20140319-19:58:08] [INFO ] A connection received from: 127.0.0.1 port 48181 [20140319-19:58:08] [INFO ] scp thread on sck 7 started successfully [20140319-19:58:08] [WARN ] unknown protocol version specified. connection refused. [20140319-19:58:08] [INFO ] An established connection closed to endpoint: 127.0.0.1:48181 - socket: 7

everything works fine if i use x11vnc. I compilate latest git without errors on centos 6. I cannot find more info about this error in any logs, someone can help me? Thanks in advance.

— Reply to this email directly or view it on GitHubhttps://github.com/neutrinolabs/xrdp/issues/115 .

Condorello commented 10 years ago

No more informations from -n execution :(

LogFile:       /var/log/xrdp-sesman.log
LogLevel:      4
EnableSyslog:  1
SyslogLevel:   4

[20140319-21:11:32] [WARN ] [init:46] libscp initialized [20140319-21:11:32] [CORE ] starting sesman with pid 1110 [20140319-21:11:32] [INFO ] listening... [20140319-21:11:51] [INFO ] A connection received from: 127.0.0.1 port 41146 [20140319-21:11:52] [INFO ] scp thread on sck 8 started successfully [20140319-21:11:52] [WARN ] unknown protocol version specified. connection refused. [20140319-21:11:52] [INFO ] An established connection closed to endpoint: 127.0.0.1:41146 - socket: 8

Il giorno 19/mar/2014, alle ore 20:53, Nicola Ruggero notifications@github.com ha scritto:

Uhm it seems something related to sesman/svc. Try to run sesman in foreground and have a look to the stdout.

Nicola Il 19/mar/2014 20:01 "Condorello" notifications@github.com ha scritto:

Hi, I can't use x11rdp, here the sesman log:

[20140319-19:56:55] [WARN ] [init:46] libscp initialized [20140319-19:56:55] [CORE ] starting sesman with pid 514 [20140319-19:56:55] [INFO ] listening... [20140319-19:58:08] [INFO ] A connection received from: 127.0.0.1 port 48181 [20140319-19:58:08] [INFO ] scp thread on sck 7 started successfully [20140319-19:58:08] [WARN ] unknown protocol version specified. connection refused. [20140319-19:58:08] [INFO ] An established connection closed to endpoint: 127.0.0.1:48181 - socket: 7

everything works fine if i use x11vnc. I compilate latest git without errors on centos 6. I cannot find more info about this error in any logs, someone can help me? Thanks in advance.

— Reply to this email directly or view it on GitHubhttps://github.com/neutrinolabs/xrdp/issues/115 .

— Reply to this email directly or view it on GitHub.

speidy commented 10 years ago

Hello, its a sesman error, means unrecognized sesman control protocol version. what xrdp version do you use? Did you build it from sources? What distro do you use?

Condorello commented 10 years ago

Hi, thanks for your reply. I’m on Centos6 x64 and i compiled everything from this git source.

Il giorno 22/mar/2014, alle ore 11:35, Idan Freiberg notifications@github.com ha scritto:

Hello, its a sesman error, means unrecognized sesman control protocol version. what xrdp version do you have? Did you build it from sources?

— Reply to this email directly or view it on GitHub.

speidy commented 10 years ago

ok, did you build master branch?

Condorello commented 10 years ago

correct!

Il giorno 22/mar/2014, alle ore 21:25, Idan Freiberg notifications@github.com ha scritto:

ok, did you build master branch?

— Reply to this email directly or view it on GitHub.

speidy commented 10 years ago

iv'e tested master on my centos 6.5 64bit box everything seems ok.

I recommend you to do 'make uninstall' and walk through our guide: http://www.xrdp.org/index.php?option=com_content&view=article&id=14:building-on-centos-5x&catid=2:documents&Itemid=7

2 highlights:

Condorello commented 10 years ago

I did everything again, though i followed those instructions before, but still get the same error in the logs:

[root@none andrea]# cat /var/log/xrdp-sesman.log [20140323-11:23:11] [WARN ] [init:46] libscp initialized [20140323-11:23:11] [CORE ] starting sesman with pid 514 [20140323-11:23:11] [INFO ] listening... [20140323-11:25:33] [INFO ] shutting down sesman 1 [20140323-11:25:33] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 6 [20140323-11:25:33] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 6 [20140323-11:26:33] [WARN ] [init:46] libscp initialized [20140323-11:26:33] [CORE ] starting sesman with pid 514 [20140323-11:26:33] [INFO ] listening... [20140323-11:27:32] [INFO ] A connection received from: 127.0.0.1 port 49508 [20140323-11:27:32] [INFO ] scp thread on sck 7 started successfully [20140323-11:27:32] [WARN ] unknown protocol version specified. connection refused. [20140323-11:27:32] [INFO ] An established connection closed to endpoint: 127.0.0.1:49508 - socket: 7

I’m on a openVZ vps, my centos has the openvz custom kernel. Could be here the problem, something like a module? But during the compiling everything went fine without any error. :/

Il giorno 22/mar/2014, alle ore 22:49, Idan Freiberg notifications@github.com ha scritto:

iv'e tested master on my centos 6.5 64bit box everything seems ok.

I recommend you to do 'make uninstall' and walk through our guide: http://www.xrdp.org/index.php?option=com_content&view=article&id=14:building-on-centos-5x&catid=2:documents&Itemid=7

2 highlights:

  1. xrdp-sesman's pam''s config file is different for centos so after installation, do that: sudo cp /instfiles/pam.d/xrdp-sesman.other /etc/pam.d/xrdp-sesman

you should create a rsa key file (rsakeys.ini) file using xrdp-keygen tool: sudo xrdp-keygen auto xrdp (it should create an rsakeys.ini in /etc/xrdp ) — Reply to this email directly or view it on GitHub.

speidy commented 10 years ago

Hello,

xrdp and sesman communicate through local uds socket, located in /etc/.xrdp

I dont know openVZ , thus, I cant say if it is related to it. On Mar 23, 2014 12:32 PM, "Condorello" notifications@github.com wrote:

I did everything again, though i followed those instructions before, but still get the same error in the logs:

[root@none andrea]# cat /var/log/xrdp-sesman.log [20140323-11:23:11] [WARN ] [init:46] libscp initialized [20140323-11:23:11] [CORE ] starting sesman with pid 514 [20140323-11:23:11] [INFO ] listening... [20140323-11:25:33] [INFO ] shutting down sesman 1 [20140323-11:25:33] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 6 [20140323-11:25:33] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 6 [20140323-11:26:33] [WARN ] [init:46] libscp initialized [20140323-11:26:33] [CORE ] starting sesman with pid 514 [20140323-11:26:33] [INFO ] listening... [20140323-11:27:32] [INFO ] A connection received from: 127.0.0.1 port 49508 [20140323-11:27:32] [INFO ] scp thread on sck 7 started successfully [20140323-11:27:32] [WARN ] unknown protocol version specified. connection refused. [20140323-11:27:32] [INFO ] An established connection closed to endpoint: 127.0.0.1:49508 - socket: 7

I'm on a openVZ vps, my centos has the openvz custom kernel. Could be here the problem, something like a module? But during the compiling everything went fine without any error. :/

Il giorno 22/mar/2014, alle ore 22:49, Idan Freiberg < notifications@github.com> ha scritto:

iv'e tested master on my centos 6.5 64bit box everything seems ok.

I recommend you to do 'make uninstall' and walk through our guide:

http://www.xrdp.org/index.php?option=com_content&view=article&id=14:building-on-centos-5x&catid=2:documents&Itemid=7

2 highlights:

  1. xrdp-sesman's pam''s config file is different for centos so after installation, do that: sudo cp /instfiles/pam.d/xrdp-sesman.other /etc/pam.d/xrdp-sesman

you should create a rsa key file (rsakeys.ini) file using xrdp-keygen tool: sudo xrdp-keygen auto xrdp (it should create an rsakeys.ini in

/etc/xrdp )

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com/neutrinolabs/xrdp/issues/115#issuecomment-38378806 .

Condorello commented 10 years ago

it's internal with the scp protocol, but it's not documented very well. I have just found this and nothing more:

case SCP_SERVER_STATE_VERSIONERR: /* an unknown scp version was requested, so we shut down the / /_ connection (and log the fact) */ log_message(&(g_cfg.log), LOG_LEVEL_WARNING, "unknown protocol version specified. connection refused.");

speidy commented 10 years ago

xrdp_mm.c should send the version. But it may change into scp process . On Mar 23, 2014 1:43 PM, "Condorello" notifications@github.com wrote:

it's internal with the scp protocol, but it's not documented very well. I have just found this and nothing more:

case SCP_SERVER_STATE_VERSIONERR: /* an unknown scp version was requested, so we shut down the / /_ connection (and log the fact) */ log_message(&(g_cfg.log), LOG_LEVEL_WARNING, "unknown protocol version specified. connection refused.");

Reply to this email directly or view it on GitHubhttps://github.com/neutrinolabs/xrdp/issues/115#issuecomment-38380143 .

Condorello commented 10 years ago

i tried to manage with the pam.d config file for xrdp but nothing changes :(

metalefty commented 7 years ago

Please reopen if this still happen with v0.9.1 or later, xrdp + xorgxrdp setup.