Bio read returned a system error 104

After a reboot due to an update last week, I can no longer connect to my Windows 10 Professional computer from my linux computer using xfreerdp. I get the following output when trying to connect us...

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Closed

awdAvenger opened this issue

Feb 17, 2016

· 35 comments

Comments

@awdAvenger

After a reboot due to an update last week, I can no longer connect to my Windows 10 Professional computer from my linux computer using xfreerdp.

I get the following output when trying to connect using the latest version from git (2a3e999):

[09:19:16:178] [21254:21255] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 104: Connection reset by peer
[09:19:16:178] [21254:21255] [ERROR][com.freerdp.core] — freerdp_set_last_error ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x2000D]
[09:19:16:178] [21254:21255] [ERROR][com.freerdp.client.x11] — Freerdp connect error exit status 1

This was with a simple command line with /u: and /v:. I have tried with /gt:rpc as well because I’ve seen somewhere else, but it didn’t work.

Note that I can connect to this Windows 10 machine using the Remote Desktop Connection application in Windows XP, and xfreerdp is able to connect to the windows XP machine.

Winver.exe on the Windows 10 machine reports: Version 1511 (OS Build 10586.104).

Let me know if there’s anything else that I can do.

@awdAvenger

I can also note that the connection works fine with the ‘rdesktop’ utility.

@bmiklautz

@awdAvenger i this via a gateway? Otherwise /gt wont bring anything. I just tested against a windows 10 test machine and did’t see this problem.
Can you check if you see any error in the windows log after connecting? Also it might help us if you run xfreerdp with the environment variable WLOG_LEVEL set to DEBUG:

@nfedera

Also no issue here connecting to Windows 10 V.1511 Build 10586.104, neither with 2a3e999 nor with current master (b4b8239)

@awdAvenger

This is not though a gateway, it’s just a simple Win 10 Pro laptop, connected to a domain.

The output from xfreerdp with DEBUG is:

$ WLOG_LEVEL=DEBUG xfreerdp /u:JOTRONknutid /v:knutid-laptop
[09:44:47:990] [10115:10115] [DEBUG][com.freerdp.client.common.cmdline] — windows: 0/1 posix: -1000/0 compat: 1/0
[09:44:47:993] [10115:10116] [DEBUG][com.freerdp.client.x11] — Searching for XInput pointer device
[09:44:47:993] [10115:10116] [DEBUG][com.freerdp.client.x11] — Pointer device: 10
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — Enabling security layer negotiation: TRUE
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — Enabling restricted admin mode: FALSE
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — Enabling RDP security: TRUE
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — Enabling TLS security: TRUE
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — Enabling NLA security: TRUE
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — Enabling NLA extended security: FALSE
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — state: NEGO_STATE_NLA
[09:44:47:994] [10115:10116] [DEBUG][com.freerdp.core.nego] — Attempting NLA security
[09:44:47:018] [10115:10116] [DEBUG][com.freerdp.core.nego] — RequestedProtocols: 3
[09:44:47:021] [10115:10116] [DEBUG][com.freerdp.core.nego] — RDP_NEG_RSP
[09:44:47:021] [10115:10116] [DEBUG][com.freerdp.core.nego] — selected_protocol: 2
[09:44:47:021] [10115:10116] [DEBUG][com.freerdp.core.nego] — state: NEGO_STATE_FINAL
[09:44:47:021] [10115:10116] [DEBUG][com.freerdp.core.nego] — Negotiated NLA security
[09:44:47:021] [10115:10116] [DEBUG][com.freerdp.core.nego] — nego_security_connect with PROTOCOL_NLA
[09:44:47:030] [10115:10116] [DEBUG][com.winpr.utils] — Could not open SAM file!
Password:
[09:44:52:034] [10115:10116] [DEBUG][com.winpr.sspi] — InitSecurityInterfaceExA
[09:44:52:034] [10115:10116] [DEBUG][com.freerdp.core.nla] — Sending Authentication Token
[09:44:52:034] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0000 4e 54 4c 4d 53 53 50 00 01 00 00 00 b7 82 08 e2 NTLMSSP………
[09:44:52:034] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
[09:44:52:034] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0020 06 01 b1 1d 00 00 00 0f ……..
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — Sending Authentication Token
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0000 4e 54 4c 4d 53 53 50 00 03 00 00 00 18 00 18 00 NTLMSSP………
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0010 78 00 00 00 30 01 30 01 90 00 00 00 0c 00 0c 00 x…0.0………
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0020 58 00 00 00 0c 00 0c 00 64 00 00 00 08 00 08 00 X…….d…….
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0030 70 00 00 00 10 00 10 00 c0 01 00 00 35 b2 88 e2 p………..5…
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0040 06 01 b1 1d 00 00 00 0f af 62 f8 f2 a5 de 14 70 ………b…..p
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0050 17 46 60 e6 8b 06 92 78 4a 00 4f 00 54 00 52 00 .F`….xJ.O.T.R.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0060 4f 00 4e 00 6b 00 6e 00 75 00 74 00 69 00 64 00 O.N.k.n.u.t.i.d.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0070 6e 00 6f 00 6e 00 65 00 47 a9 da 2b d1 05 86 59 n.o.n.e.G..+…Y
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0080 ac f5 16 c9 b4 f6 ad 09 4e 96 36 3a 3c ef b0 d1 ……..N.6:<…
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0090 2a bd 2d 3b ac ba 22 65 9d 18 3d 30 31 1f 01 67 .-;..»e..=01..g
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 00a0 01 01 00 00 00 00 00 00 4c ac 94 9f 96 73 d1 01 ……..L….s..
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 00b0 4e 96 36 3a 3c ef b0 d1 00 00 00 00 02 00 0c 00 N.6:<………..
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 00c0 4a 00 4f 00 54 00 52 00 4f 00 4e 00 01 00 1a 00 J.O.T.R.O.N…..
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 00d0 4b 00 4e 00 55 00 54 00 49 00 44 00 2d 00 4c 00 K.N.U.T.I.D.-.L.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 00e0 41 00 50 00 54 00 4f 00 50 00 04 00 18 00 4a 00 A.P.T.O.P…..J.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 00f0 6f 00 74 00 72 00 6f 00 6e 00 2e 00 6c 00 6f 00 o.t.r.o.n…l.o.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0100 63 00 61 00 6c 00 03 00 34 00 6b 00 6e 00 75 00 c.a.l…4.k.n.u.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0110 74 00 69 00 64 00 2d 00 6c 00 61 00 70 00 74 00 t.i.d.-.l.a.p.t.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0120 6f 00 70 00 2e 00 4a 00 6f 00 74 00 72 00 6f 00 o.p…J.o.t.r.o.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0130 6e 00 2e 00 6c 00 6f 00 63 00 61 00 6c 00 05 00 n…l.o.c.a.l…
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0140 18 00 4a 00 6f 00 74 00 72 00 6f 00 6e 00 2e 00 ..J.o.t.r.o.n…
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0150 6c 00 6f 00 63 00 61 00 6c 00 07 00 08 00 4c ac l.o.c.a.l…..L.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0160 94 9f 96 73 d1 01 06 00 04 00 02 00 00 00 0a 00 …s…………
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0170 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0180 00 00 09 00 2a 00 54 00 45 00 52 00 4d 00 53 00 ….
.T.E.R.M.S.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 0190 52 00 56 00 2f 00 6b 00 6e 00 75 00 74 00 69 00 R.V./.k.n.u.t.i.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 01a0 64 00 2d 00 6c 00 61 00 70 00 74 00 6f 00 70 00 d.-.l.a.p.t.o.p.
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
[09:44:52:036] [10115:10116] [DEBUG][com.freerdp.core.nla] — 01c0 29 a6 82 81 50 78 6d 3c c0 13 b9 24 2c 1d f1 93 )…Pxm<…$,…
[09:44:55:976] [10115:10116] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 104: Connection reset by peer
[09:44:55:976] [10115:10116] [DEBUG][com.freerdp.core.transport] — transport_check_fds: transport_read_pdu() — -1
[09:44:55:976] [10115:10116] [DEBUG][com.freerdp.core.rdp] — transport_check_fds() — -1
[09:44:55:976] [10115:10116] [ERROR][com.freerdp.core] — freerdp_set_last_error ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x2000D]
[09:44:55:976] [10115:10116] [ERROR][com.freerdp.client.x11] — Freerdp connect error exit status 1

On the windows side, I get an Audit Success message in the Security logs with a Login and then a Logoff right after that. Nothing else can be seen in the event viewer.

@nfedera

Shoudn’t you escape the domain separator? Maybe simply try xfreerdp /u:knutid /d:JOTRON

@awdAvenger

I actually did escape it, not sure why that didn’t show on the pasting. I tried with /d: as well, but it still doesn’t work and I don’t think it’s directly related to authentication credentials, as Windows says it has authenticated successfully.

@nfedera

Since you have a working and non-working revision you could use git bisect to identify the bad commit.

@awdAvenger

Well, they are different applications, I know freerdp is a fork of rdesktop, but I think going back that far probably won’t be helpful?

I compared Wireshark output of rdesktop and freerdp and found that both receive the same RST from Windows, but the rdesktop application then initiates another connection which then proceeds to complete the connection process. I cannot make much sense of the actual data sent though, as most appears to be binary structures and/or encrypted.

@bmiklautz

@awdAvenger just to clarify FreeRDP < 1.0 was initially a fork but with 1.0 FreeRDP it was completely rewritten from scratch.
Regarding your problem can you try with /sec:rdp and/or with /sec:tls?

@awdAvenger

With /src:rdp and /sec:tls it works!

@bmiklautz

@awdAvenger so it seems that there is a problem with NLA in your case. I’d recommend using /sec:tls.

@awdAvenger

So it would appear. I can work with the other security protocols, so thanks a lot for your help. If you decide to track down this issue more, let me know if you need some additional information.

@bmiklautz

@awdAvenger may I ask what client you are on (distribution, system architecture)?

@nfedera

@awdAvenger Do you also have the issue if you log on as a local user instead of a domain user? (Use something like xfreerdp /u:knutid /d:knutid-laptop /v:knutid-laptop). Also what have you configured in System Properties -> Remote Tab ?

@nfedera

@awdAvenger You might also want to post a registry dump of the following key: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp

@awdAvenger

I am on Arch Linux 64 bit, I used the package in the repositories, but I also tried to build the package from git. I tried to downgrade the package but it did not help, so I am pretty confident that that the change happened on the Windows side, unless a library freerdp depends on changed.

In the remote settings I have allowed remote connections and have not checked the ‘Allow connections only from computers running with NLA’. No change from the defaults have been done to the users list. It says my user has access and the list is empty.

Connecting as my non-domain user works as well, even with NLA security.

I have attached the registry dump as requested.
regdump.zip

@nfedera

@awdAvenger thx, this reg key is fine. However, if it works with a local user you seem to have some domain policies in place. Ask your Domain Administrator and/or run rsop.msc (elevated) to check the applied policies. Concentrate on entries under Computer Configuration -> Administrative Templates -> Windows Compnents -> Remote Desktop Services

@HenryJacques

@nfedera

@HenryJacques Thanks! Confirmed. @awdAvenger can you also confirm that this setting is enabled for your user? @HenryJacques However, even with Windows mstsc I’m not able to login via NLA if «Logon to ..» is configured.

@awdAvenger

I will try to check the user settings for my user. In the mean time, I can tell that I don’t know if rdesktop used NLA at all. And the remote client on windows that worked was on Windows XP, and I don’t think NLA is supported on that either.

@HenryJacques

@nfedera with mstsc I cannot use NLA myself.
What kind of error do you have?
I’ve created a rdp file to configure specific option with mstsc:

  • with negotiate security layer:i:0 I get an error message and cannot connect at all
  • with negotiate security layer:i:1 I get no error, the remote session starts but do not automatically login. Instead I have the Windows session prompt. I have to re-enter the password and then it works

@HenryJacques

@HenryJacques

@nfedera to complete my previous post, I ran a wireshark session and I saw that mstc talks directly to the DC. I get a Kerberos Error (STATUS_INVALID_WORKSTATION) in both cases.
If negotiate security layer:i:1 is set, it only fall back to standard RDP security.

krb

@nfedera

@HenryJacques mstsc under Windows 10 shows better error messages. If I rdp from Windows 10 domain workstation A to win10 domain workstation B and the user has only B in the «Logon to» list mstsc reports: `The system administrator has limited the computers you can log on with. Try logging on at a different computer«. This does not seem to make any sense because the computer B is in the list. If I add both computers A and B to the «Logon to» list it works however.

@nfedera

It even works for non-domain, non-windows clients. If I add both, the target computer (in domain) and the dns name of a (non domain) linux machine to a user’s «Logon To …» list in dsa.msc, xfreerdp /sec:nla from this linux pc to that windows 10 domain computer works perfectly fine.

So I guess we can close this issue — @awdAvenger ok ?

@HenryJacques

@nfedera great finding! I’d never had thought to put the A computer in the allowed workstations list. Maybe in Microsoft’s mind if you want to login on B and you’re logged on A (with the same account though), you have to be able to open a session on A first…

I also have the same conclusion concerning your very last post, I can make it work with Linux and xfreerdp. If I put the hostname of my linux client in the authorized workstations list.

However, I think there is a bug: I use the /hostname:XXX option, and setting XXX in the workstation list doesn’t work. I have to put the real hostname.

@nfedera

@HenryJacques elaborate on the last sentence. There is no /hostname: option

@HenryJacques

@nfedera sorry ;) I meant the /client-hostname: option

@nfedera

@HenryJacques Ok, you were trying to fake it. It would have been embarrassing (for MS) if that actually worked. I don’t think this is a bug ;)

@HenryJacques

@nfedera Ok, this option is just meant as a fake? I used it in conjunction with the /drive: option so that there is a «friendly» name.
So, this is a normal behaviour for you?

@nfedera

@HenryJacques In the client core data block (https://msdn.microsoft.com/en-us/library/cc240510.aspx) you can see the clientName field which is described as «name of the client computer.». FreeRDP sets this value to the hostname here and overwrites it here if /client-hostname is specified. So this isn’t a secure setting and should not be trusted on the server and only be used as a client provided friendly name. And yes, for me it is normal behaviour that the server gives the peer name/address of the network connection priority over the name the client says that it has.

@bmiklautz

Seems that this is not a FreeRDP bug, closing this issue.
@awdAvenger if it turns out it wasn’t the problem you where hitting please re-open.

@HenryJacques

@ghabxph

For people who may have this kind of issue:

In your Windows 10 Machine, Go to: System Properties > Remote > Uncheck «Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)»

Then in your linux machine’s terminal, type:
xfreerdp /sec:tls /u:{username} /v:{IP}

I have this kind of issue for a very very long time, and disabling NLA in my windows local machine, and forcing connection to TLS solves my problem.

I like to use xfreerdp because it has multi-monitor support, unlike remmina.

Hope this helps everyone.

@sachinh1980

For people who may have this kind of issue:

In your Windows 10 Machine, Go to: System Properties > Remote > Uncheck «Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)»

Then in your linux machine’s terminal, type:
xfreerdp /sec:tls /u:{username} /v:{IP}

I have this kind of issue for a very very long time, and disabling NLA in my windows local machine, and forcing connection to TLS solves my problem.

I like to use xfreerdp because it has multi-monitor support, unlike remmina.

Hope this helps everyone.

Thanks for the hint. But does it not mean that we are disabling the recommended settings for Remote-Connection on Windows Server?

FreeRDP — это бесплатный клиент удаленного рабочего стола по протоколу RDP, выпущенный под лицензией Apache. В данной заметке рассмотрим варианты установки и настройки для работы с Winsows Server.

1. Установка из репозитория Ubuntu/FreeRDP

В самом простом случае установка из стандартного репозитория Ubuntu выглядит так:

Будет установлена версия 2.2.0 (n/a). Так же можно установить FreeRDP последней версии подключив репозиторий freerdp-nightly следующим образом:

sh -c 'echo "deb http://pub.freerdp.com/repositories/deb/$(lsb_release -cs)/ freerdp-nightly main" >> /etc/apt/sources.list'
wget -O - http://pub.freerdp.com/repositories/ADD6BF6D97CE5D8D.asc | sudo apt-key add -

И выполнить установку:

apt update 
apt install --yes freerdp-nightly

Будет установлена последняя актуальная на момент выхода статьи версия: 3.0.0-dev.

Запускать отсюда: /opt/freerdp-nightly/bin/./xfreerdp

Что бы каждый раз не набирать полный путь к исполняемому файлу создадим smlink:

ln -s /opt/freerdp-nightly/bin/xfreerdp /usr/bin/xfreerdp

2. Установка из исходников

Установка из исходников позволяет гибко добавлять или отключать определенные функции/фичи. Установим базовые компоненты/зависимости необходимые для успешной компиляции:

apt install cmake gcc g++ git ninja-build build-essential debhelper cdbs dpkg-dev autotools-dev pkg-config xmlto 
libssl-dev docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev libxrandr-dev libxi-dev libxrender-dev libxext-dev 
libxinerama-dev libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev libxtst-dev libcups2-dev libpcsclite-dev libasound2-dev 
libpulse-dev libjpeg-dev libgsm1-dev libusb-1.0-0-dev libudev-dev libdbus-glib-1-dev uuid-dev libxml2-dev libgstreamer1.0-dev 
libgstreamer-plugins-base1.0-dev libfaad-dev libfaac-dev ffmpeg libxkbcommon-dev zlib1g-dev libavcall1 libavcodec-dev libsystemd-dev

Создадим директорию где-нибудь в корне.  Склонируем репозиторий с исходниками FreeRDP к себе в каталог:

mkdir distr
git clone https://github.com/FreeRDP/FreeRDP.git
cd FreeRDP

Cгенерируем файлы управления сборкой с указанием необходимых фич при помощи утилиты cmake:

cmake -GNinja -DCHANNEL_URBDRC=ON -DWITH_DSP_FFMPEG=ON -DWITH_CUPS=ON -DWITH_PULSE=ON -DWITH_FAAC=ON -DWITH_FAAD2=ON -DWITH_GSM=ON .

В случае каких либо ошибок или нехватки компонентов, необходимо их установить, затем удалить фаил кэша: CMakeCache.txt и запустить cmake повторно. После чего запустить сборку:

И затем установку:

cmake --build . --target install

На выходе получим xfreerdp последней версии, исполняемый файл которого будет находится в /usr/local/bin. Создадим smlink для запуска одной командой:

ln -s /usr/local/bin/xfreerdp xfreerdp

Для удаления FreeRDP используем следующую команду:

xargs rm -rf < install_manifest.txt

где, install_manifest.txt — содержит информацию о всех файлах FreeRDP установленных в систему. Будет создан сразу после установки.

3. Запуск и варианты использования

В самом простом случае для подключения к windows-серверу (Win7/2008R2 и выше) используем следующую команду:

xfreerdp /u:user /d:domain /v:server /p:PassWd /f /kbd-type:en-us /bpp:32 /network:auto /sec:tls /cert-ignore

где,

/u: имя пользователя зарегистрированного на сервере терминалов с правами на удалённый доступ

/d: имя домена или имя сервера терминалов

/v: имя сервера терминалов или его IP адрес

/p: пароль пользователя зарегистрированного на сервере терминалов (Если не указывать, пароль запрашиваться)

/f: полноэкранный режим удаленного рабочего стола. Комбинация <Ctrl>+<Alt>+<Enter>позволяет приключаться между оконным и полноэкранным режимами.

/kbd-type: раскладка клавиатуры. Вывести список всех раскладок можно при помощи опции /kbd-list

/bpp: глубина цвета (32, 16, 8)

/network: тип сетевого подключения (modem, broadband [-low|-high], wan, lan, auto)

/sec: принудительно использовать протокол безопасности (rdp | tls | nla | ext)

/cert-ignore: игнорировать сертификат сервера терминалов

Для подключения к серверу через шлюз удаленных рабочих столов используем дополнительные ключи:

xfreerdp /u:user /d:domain /v:server /p:PassWd /f /g:gate:mydomain.ru:23400 /gu:GateUser /gd:GateDomainUser /gp:GateUserPassword /kbd-type:en-us /bpp:32 /network:auto /sec:tls /cert-ignore

/g: указать шлюз удаленных рабочих столов + порт (по умолчанию если не настроен то 443, тогда можно не указывать), например: gate.mydomain.ru:23400.

/gu: указать пользователя имеющего права авторизоваться через шлюз удаленных рабочих столов.

/gd: указать домен/имя компьютера для авторизации пользователя через шлюз удаленных рабочих столов.

/gp: указать пароль пользователя для авторизации через шлюз удаленных рабочих столов.

Ознакомится с полным перечнем всевозможных ключей можно на сайте  проекта FreeRDP или в руководстве пользователя доступном по команде: xfreerdp /help

Проверяем/тестируем на Windows Server 2012R2 и через какое то время в процессе работы видим самопроизвольные вылетания/разрывы сессии.

Включаем логирование добавив опцию /log:level, и следующую запись перед командной xfreerdp /u…

WLOG_APPENDER=file WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=freerdp.log WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/tmp

Итого, команда примет следующий вид:

WLOG_APPENDER=file WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=freerdp.log WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/tmp xfreerdp /u:user /d:domain /v:server /f /kbd-type:en-us /bpp:32 /network:broadband /sec:tls /cert-ignore /log:level:error

где, /log-level может принимать следующие значения: FATAL, ERROR, WARN, INFO, DEBUG, TRACE.

Для того что бы запускать данную конструкцию при помощи ярлыка/кнопки запуска с рабочего стола пользователя, добавим код в отдельный .sh файл и разместим его например в корне диска в каталоге /freerdp.

mkdir freerdp
cd freerdp
nano rdp.sh
chmod +x rdp.sh

После чего запускаем фаил и ждем когда наш лог-фаил появится в каталоге /tmp, где будет ошибка следующего содержания:

[08:12:55:200] [48815:48816] [ERROR][com.freerdp.core] - rdp_set_error_info:freerdp_set_last_error_ex ERRINFO_GRAPHICS_SUBSYSTEM_FAILED [0x0001112F]
[08:12:55:201] [48815:48816] [ERROR][com.freerdp.core.transport] - BIO_read returned a system error 104: Соединение разорвано другой стороной

или такого:

[16:06:03:762] [11388:11389] [ERROR][com.freerdp.core.transport] - BIO_should_retry returned a system error 104: Соединение разорвано другой стороной
[16:06:03:762] [11388:11389] [ERROR][com.freerdp.core] - transport_default_write:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[16:06:03:763] [11388:11389] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1

Согласно рекомендациям разработчика надо изменить «тип сетевого подключения» на auto и добавить поддержку кодеков RemoteFX (/rfx)  и h264 AVC444 (/gfx:avc444)

WLOG_APPENDER=file WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=freerdp.log WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/tmp xfreerdp /u: /d:pkm /v:Server /kbd-type:en-us /f /bpp:16 /rfx /network:auto /sec:tls /cert-ignore /log-level:error

К слову сказать, для устранения данной ошибки достаточно добавить ключ /network:auto. RemoteFX — будет работать только если данный протокол включен на сервере. AVC444 — работает начиная с Windows Server 2016 и RDP 10-й версии.

Skip to content



Open


Issue created Jul 07, 2020 by Ole Bialas@OleBialas2 of 14 checklist items completed2/14 checklist items

Cannot connect to «IP adress of target computer» RDP server

Test on the latest remmina version before submitting a bug-report, and keep trying to reproduce it on any later versions

  • Reporting back greatly increases the attention and hope of fixing your issue.

You can also ask questions via

  • IRC room, on freenode.net, in the #remmina channel, you can also use a web client.
  • General discussion mailing list.
  • Reddit

Local System Description

  • Client (OS name and version):

  • Remmina version ( remmina --version ):

  • Installation:

    • Distribution package.
    • PPA.
    • Snap.
    • Flatpak.
    • Compiled from sources.
    • Other — detail:
  • Desktop environment (GNOME, Unity, KDE, ..):

  • Plugin:

    • RDP — freerdp version ( xfreerdp --version ):
    • VNC
    • SSH
    • SFTP
    • SPICE
    • WWW
    • EXEC
    • Other (please specify):
  • GTK back-end (Wayland, Xorg):

  • Optional: Include the output of the following commands at the end of this text:

    • remmina --full-version
Remmina plugin glibsecret (type=Secret) has registered but not yet initialized/activated. Initialization order is 2000.
Secret plugin glibsecret has been successfully initialized and will be your default secret plugin

org.remmina.Remmina - 1.4.7 (git n/a)

NAME                TYPE            DESCRIPTION                                                     PLUGIN AND LIBRARY VERSION
RDP                 Protocol        RDP - Remote Desktop Protocol                                   RDP plugin: 1.4.7 (Git n/a), Compiled with libfreerdp 2.1.1 (n/a), Running with libfreerdp 2.1.1 (rev n/a), H.264 Yes
RDPF                File            RDP - RDP File Handler                                          RDP plugin: 1.4.7 (Git n/a), Compiled with libfreerdp 2.1.1 (n/a), Running with libfreerdp 2.1.1 (rev n/a), H.264 Yes
RDPS                Preference      RDP - Preferences                                               RDP plugin: 1.4.7 (Git n/a), Compiled with libfreerdp 2.1.1 (n/a), Running with libfreerdp 2.1.1 (rev n/a), H.264 Yes
SPICE               Protocol        SPICE - Simple Protocol for Independent Computing Environments  1.4.7     
VNC                 Protocol        Remmina VNC Plugin                                              1.4.7     
VNCI                Protocol        Remmina VNC listener Plugin                                     1.4.7     
glibsecret          Secret          Secured password storage in the GNOME keyring                   1.4.7     

Build configuration: HAVE_ARPA_INET_H=1 HAVE_ERRNO_H=1 HAVE_FCNTL_H=1 HAVE_NETDB_H=1 HAVE_NETINET_IN_H=1 HAVE_NETINET_TCP_H=1 HAVE_SYS_SOCKET_H=1 HAVE_SYS_UN_H=1 HAVE_TERMIOS_H=1 HAVE_UNISTD_H=1 WITH_APPINDICATOR=ON WITH_AVAHI=ON WITH_CUPS=ON WITH_FREERDP_MASTER=OFF WITH_GCRYPT=ON WITH_GETTEXT=ON WITH_ICON_CACHE=ON WITH_IPP=OFF WITH_KF5WALLET=ON WITH_KIOSK_SESSION=OFF WITH_LIBRARY_VERSIONING=ON WITH_LIBSECRET=ON WITH_LIBSSH=ON WITH_LIBVNCSERVER=ON WITH_MANPAGES=ON WITH_NEWS=ON WITH_SPICE=ON WITH_SSE2=ON WITH_TRANSLATIONS=ON WITH_UPDATE_DESKTOP_DB=ON WITH_VTE=ON WITH_WWW=ON
Build type:          None
CFLAGS:              -g -O2 -fdebug-prefix-map=/build/remmina-m5UnBt/remmina-1.4.7+ppa202006232218.r2c18f95.df03f7ba~ubuntu18.04.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -g
Compiler:            GNU, 7.5.0
Target architecture: x64
  • sudo lshw -C video
       description: VGA compatible controller
       product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:27 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
  • uname -a
Linux NEURO42 5.3.0-62-generic #56~18.04.1-Ubuntu SMP Wed Jun 24 16:17:03 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Remote System Description

  • Server (OS name and version): Windows 10
  • Special notes regarding the remote system (i.e. gateways, tunnel, etc.):

Problem Description

I am trying to establish a connection to a computer running windows 10. I can ping the computer and when I first try to connect remmina asks to accept the target computers certificate. I press yes and get the error message Cannot connect to «IP adress of target computer» RDP server. Im getting the following output in the terminal:

[17:22:20:550] [31243:31249] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[17:22:20:551] [31243:31249] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[17:22:20:551] [31243:31249] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[17:22:20:551] [31243:31249] [INFO][com.freerdp.client.common.cmdline] - loading channelEx drdynvc
[17:22:21:874] [31243:31249] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[17:22:21:877] [31243:31249] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[17:22:21:877] [31243:31249] [INFO][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state
[17:22:21:893] [31243:31249] [WARN][com.freerdp.crypto] - Certificate verification failure 'unable to get local issuer certificate (20)' at stack position 0
[17:22:21:893] [31243:31249] [WARN][com.freerdp.crypto] - CN = psybioneulab101.***.*******.**
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - @           WARNING: CERTIFICATE NAME MISMATCH!           @
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - The hostname used for this connection (139.**.**.**:****) 
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - does not match the name given in the certificate:
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - Common Name (CN):
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - 	psybioneulab101.***.*******.**
[17:22:21:893] [31243:31249] [ERROR][com.freerdp.crypto] - A valid certificate for the wrong name should NOT be trusted!
[17:22:22:570] [31243:31249] [ERROR][com.freerdp.core.transport] - BIO_read returned a system error 104: Connection reset by peer
[17:22:22:570] [31243:31249] [ERROR][com.freerdp.core] - transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[17:22:22:574] [31243:31249] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[17:22:22:574] [31243:31249] [INFO][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state
[17:22:23:896] [31243:31249] [ERROR][com.freerdp.core.transport] - BIO_read returned a system error 104: Connection reset by peer
[17:22:23:896] [31243:31249] [ERROR][com.freerdp.core] - transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[17:22:23:896] [31243:31249] [ERROR][com.freerdp.core] - freerdp_post_connect failed
libfreerdp returned code is 0002000D

Some fixes I found suggested deleting the list of hosts, so after doing $ rm ~/.config/freedp/known_hosts2
and then try to connect Remmina will again ask to accept the certificate followed by the same error as before.

Also following some guides i tried a few different options for security protocol negotiation and gateway transport type — still no difference.

RDP is enabled on the computer I am trying to connect to…
I hope you can help me,
Cheers,
Ole

What is the expected correct behavior?

(What you want to see instead.)

Relevant logs and/or screenshots

Edited Jul 08, 2020 by Ole Bialas

  1. Remmina RDP stopped working

    Hey everyone. I need help with the following problem.

    I have two laptops with Ubuntu 20.04 and I have been using Remmina to connect to a Windows 10 PC for many months. This worked fine from both PCs, but a week ago it stopped working from the one laptop (Dell) when I changed the resolution setting from «Use client resolution» to «Use initial windows size». I changed it back but I still could not get it to work. I tried various combinations of resolutions and colour depth settings without any luck. Then I tried checking the Advanced Tab setting «Ignore certificate» and it worked the first time but the second time (and later tries) it stopped working again. Unchecking the «Ignore certificate» setting had no effect.

    I tried with the second laptop (Lenovo) and everything was working fine, but when I changed the resolution setting it stopped working as well. I tried with various settings combinations but I could not get it to work again..

    For a few days now, in both laptops, when I try to start the connection I get a black screen and a couple of seconds later the Reconnect message (0->1 out of 20) which repeats itself (it never goes to 2, 3 etc. out of 20). I have deleted the «known_hosts2» file in the .config/freerdp/ directory but the only effect was that I get an initial message to accept the certificate when the connection starts. I select accept and the result is the same black screen and then the Reconnect message. I have also tried with changing the «Security» setting from «Negotiate» to «TLS» but without any effect.

    Another thing I tried was to remove the stored password of the Windows 10 PC from the Remmina settings. The effect was an initial challenge for the password, but when I type it, I get the black screen and Reconnect message again.

    Can anyone help me with this? I can still connect to the Windows 10 PC from a Windows laptop using the Windows Remote Desktop client, but it is more convenient for me to work with Ubuntu.


  2. Re: Remmina RDP stopped working

    I used RDP extensively for remote work I do for a library. Since the upgrade to 20.04 it doesn’t work at all. Before I could login to the user that wasn’t logged in. Now it won’t login at all. I have researched this a lot with no luck. I wonder if they have changed linux rdp to match windows rdp that only allows one user per computer?


  3. Re: Remmina RDP stopped working

    AFAIK Remina is just a glorified frontend for FreeRDP — https://www.freerdp.com/

    So you could try to upgrade FreeRDP, run it without Remina and see if it works better that way.


  4. Re: Remmina RDP stopped working

    Thanks I’ve tried freerdp, KRDC, vinagre, rmmina. All fail in 20.04 and worked fine in 18.04


  5. Re: Remmina RDP stopped working

    Have you tried xfreerdp from the command line?

    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I’m going back to my own.


  6. Re: Remmina RDP stopped working

    Thanks HermanAB and QIII for the tip of getting back to the basics, i.e. try with command-line. I ran xfreerdp with just the /v (server IP and port) /f (full screen mode) and /bpp:32 (colour depth) switches and was able to connect once. Then I disconnected and tried to switch from full screen to windowed mode (/w and /h switches) but could not connect again. Reverting to the initial command that worked the first time did not help

    The result is similar to what I get with Remmina: After the user/password challenge I get the black screen and a few seconds later it closes. The error message in my terminal window is
    [11:20:49:484] [6144:6145] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 104: Connection reset by peer

    Any idea why this happens? It seems that the server is not happy with something and drops the connection, but why did it work the first time? Any suggestion on what other command-line options I could try?


  7. Re: Remmina RDP stopped working

    Sounds like you need to upgrade Windows.


  8. Re: Remmina RDP stopped working

    Windows 10 PC (target of RDP) is at the most recent build and patch level, so there is nowhere to go at the moment. I guess I will need to work from my Windows installation (it has no problem connecting to the target PC) instead of my Ubuntu laptops.. Unless anyone else has any other suggestion I may try.


  9. Re: Remmina RDP stopped working

    Once the Windows server dropped the connection there may still be a hanging process, preventing the Linux client from connecting again. Try restarting Windows after a login failure.


Тема: Remmina периодически вышибает сеанс RDP. Runtu XFCE 18.04  (Прочитано 2797 раз)

0 Пользователей и 2 Гостей просматривают эту тему.

Поставил ядро 4.15 т.к. с новым ядром были проблемы с сетью на другом компе.
Периодически вылетает Remmina в RDP сеансе на Windows Server. Вылетает так, что надо заново вводить логин и пароль. Причем это на трёх компах с Runtu XFCE 18.04.
RDP сеанс из винды на тот же сервер стабилен. В Runtu XFCE 14.04 тоже таких проблем не было.
Даунгрейдить Remmina? Как это сделать?


Записан


Периодически вылетает Remmina в RDP сеансе на Windows Server.

    Лог ошибок при запуске из терминала присутствует? В ~/.xsession-errors и /var/log/syslog в этот момент что-то интересное  происходит?


Записан


 Терминал выдал:
[12:44:44:994] [4183:4363] [INFO][com.freerdp.core] — ERRINFO_DECRYPT_FAILED (0x00001192):(a) Decryption using Standard RDP Security mechanisms (section 5.3.6) failed.
(b) Session key creation using Standard RDP Security mechanisms (section 5.3.5) failed.
[12:44:44:074] [4183:4363] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 104: Соединение разорвано другой стороной
[12:44:44:105] [4183:4363] [ERROR][com.freerdp.core] — freerdp_check_fds() failed — 0
Failed to check FreeRDP event handles

В ~/.xsession-errors и /var/log/syslog ничего в это время не появилось


Записан


   

Runtuner, к какой версии Windows производится подключение? Попробуйте изменить в параметрах RDP-подключения Remmina на вкладке «Дополнительно» значение пункта «Безопасность«. По-умолчанию установлено «Согласование«, ещё имеются NLA/TLS/RDP.

Поиск решения нужно осуществлять по ключевым фразам:

[INFO][com.freerdp.core] - ERRINFO_DECRYPT_FAILED (0x00001192):(a) Decryption using Standard RDP Security mechanisms (section 5.3.6) failed.

Session key creation using Standard RDP Security mechanisms (section 5.3.5) failed.


Записан


Сервер Win2003R2.
На вкладке безопасность подключается только «Согласование» и «RDP». Сессия рвётся одинаково. При NLA, TLS не соединяется.
Поиск не очень помог. Нашёл ветку с 2012 по 2018 год:
 https://github.com/FreeRDP/FreeRDP/issues/433
Так и не понял решилась проблема или нет.
Нашёл там рекомендацию —no-fastpath. B Remmina такой опции нет.


Записан


Если юзать голый xfreerdp (без remmina) проблема есть?


Записан


Как его поюзать без Remmina? Везде написано, что реминa использует freerdp. Не смог найти его у себя на компе.
Думаю ошибка сохранится, т.к. в тексте ошибки упоминается freerdp. Если только установить более новую версию freerdp.


Записан



Записан



Записан


Столкнулся с особенностью работы xfreerdp: не работает буфер обмена, в случае, если основной сессией является freerdp, т.е. в thinstation.conf.buildtime прописано SESSION_0_TYPE=freerdp. Таким образом, если в thinstation.conf.buildtime прописано SESSION_0_TYPE=xfwm4, и xfreerdp запущен из терминала, буфер обмена работает (Thinstation запущен на VMWare, копипаст делаю из RDP-сессии на родительскую машину), если же в thinstation.conf.buildtime прописано SESSION_0_TYPE=freerdp — то не работает.
Thinstation загружаю на виртуальную машину с ISO-образа, и не смотря на установленные параметры

NET_FILE_ENABLED=On
NET_FILE_METHOD=wget
NET_FILE_ALTERNATE=192.168.100.31
SERVER_IP=192.168.100.31

в файле thinstation.conf.buildtime, переменные окружения типа SESSION_0_TITLE и пр. не подгружаются по TFTP, т.е. команда echo $SESSION_0_TITLE ничего не выдает.

Как вариант обхода выявленных проблем, написал небольшой скрипт-костыль :sick: по вытягиванию параметров запуска xfreerdp в зависимости от MAC-адреса Thinstation c файлика на TFTP сервере, и запуска самого xfreerdp:

my_MAC_address=$(ip a | grep link/ether |  cut -c16-32 )
echo мой МАС-адрес: $my_MAC_address

cd /tmp
busybox tftp -g -r mega_config.txt 192.168.100.31
echo Скачанный список MAC-адресов с настройками:
cat /tmp/mega_config.txt 

my_config_line=$(cat /tmp/mega_config.txt | grep $my_MAC_address)
echo Вытаскиваю свою строку: $my_config_line 

my_command=${my_config_line:18:80}
echo команда для запуска: "$my_command" >startfreerdp.txt

$my_command

параметры берем из файлика, размещенного на TFTP сервере:

00:0c:29:c5:41:6d xfreerdp /v:192.168.100.31 /u:ThinClient_2 /p:1q2w3e4r- /cert:ignore /drive:/mnt/usbdevice
00:0c:29:c5:41:7d xfreerdp /v:192.168.100.31 /u:ThinClient_3 /p:1q2w3e4r+ /cert:ignore /drive:/mnt/usbdevice
00:0c:29:db:90:e3 xfreerdp /v:192.168.100.31 /u:ThinClient_4 /p:1q2w3e4r. /cert:ignore /drive:/mnt/usbdevice

Подскажите пожалуйста, как произвести автоматический запуск этого скрипта сразу после открытия сессии XFWM?
Сам скрипт разместил в /build/packages/base/bin, в файле /build/packages/base/etc/inittab прописал tty1::respawn:/bin/superscript2021, как советовал Don Cupp, но скрипт не запускается, и лог /tmp/startfreerdp.txt тоже не формируеся…

Remmina-Next(FreeRDP) закрывается сессия.

Подскажите, куда копнуть. Дистр Mint 19, RDP клиент Remmina-Next. Сервер Win 2016 Случайным образом рвется RDP сессия. Просто закрывается окно клиента. Никакой системы нет. Может день отработать нормально, может несколько раз вылететь. В логах: [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 104: Соединение разорвано другой стороной Failed to check FreeRDP event handles

Понятно, что ошибка шифрования, а вот, что с этим делать непонятно. Гугл не помог(.

рдс то поднят нормально на винде?

Что значит нормально? Как подняли сервер 2 года назад. Так и работает.

ну главное что проблемы не в сети и не на самом сервере, а в связке винда винда все работает.

А на виндовом сервере сколько одновременных коннектов разрешено по рдп?
Насколько я знаю если кол-во активных соединений исчерпано, то при коннекте предлагается выкинуть уже законнекченых пользователей. Так вот, тебя случаем никто не выкидывает? Можно глянуть логи рдп на виндовом серваке, думаю инфа о том кто приконнектился там должна быть.

Проблемы с клиентами FreeRDP(Remmina). Виндовые работают нормально. Ограничений на количество подключений нет.Да и закрывается в таком случае штатно, а не просто схлопывается окно.

Тоже такое бывает, с бэкендом freerdp. В логах оффтопика «ошибка шифрования», под онтопиком [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 104

Попробуйте Remmina-Master, ну или какую-нибудь стабильную версию. Next слишком глючная. Недавно они сломали проброс usb токенов.

В ней, как раз проброс токенов работает. А вот в версии из стандартного репозитория нет. Поставил из версию из snap. Вроде стало реже. Но, имхо, не в реммине дело. Что на уровне протокола. Отваливается по ошибке шифрования, соединение сбрасывает сервер.

Попробуй отключить проброс звука.

Все отключено. Шифрование RDP, цвет 16bit. Только проброс принтеров и буфера. Прикол еще в том, что есть несколько компов, на которых этой проблемы нет. Хотя софт идентичен. Ставилось из одного «эталонного» образа clonezilla. Remmina из обычного репозитория работает стабильно. Но там нельзя указать драйвер принтера и не работает смарт-карта. Замкнутый круг, короче)

Remmina из репозитория использует freerdp 1 версии.

Источник

reminna невозможно подключиться к rdp серверу

Всем привет, нужна помощь. На компьютере 1 установлена Kubuntu 20.10

Linux 5.8.0-33-generic #36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Пытаюсь с помощью Remmina 1.4.10 подключиться по rdp к компьютеру 2 на windows 10, пишет, что подключение к серверу потеряно. Лог отладки:

(remmina_rdp_main) — Not using system proxy settings (remmina_rdp_tunnel_init) — Tunnel init (remmina_rdp_tunnel_init) — protocol_plugin_start_direct_tunnel() returned [ххх]:3389 (remmina_rdp_tunnel_init) — Tunnel has been optionally initialized. Now connecting to ххх:3389 (remmina_rdp_main) — proxy_type: (null) (remmina_rdp_main) — proxy_username: (null) (remmina_rdp_main) — proxy_password: (null) (remmina_rdp_main) — proxy_hostname: (null) (remmina_rdp_main) — proxy_port: 80 (remmina_rdp_main) — Log level set to to INFO (rmnews_periodic_check) — periodic_rmnews_last_get is 1607757858 (rco_on_disconnect) — Disconnect signal received on RemminaProtocolWidget (remmina_file_save) — Saving profile (remmina_file_save) — We have a password and disablepasswordstoring=0 (remmina_file_save) — We have a password and disablepasswordstoring=0 (remmina_file_save) — We have a password and disablepasswordstoring=0 (remmina_file_save) — We have a password and disablepasswordstoring=0 (remmina_file_save) — Profile saved (rco_on_disconnect) — Could not disconnect

Remmina plugin glibsecret (type=Secret) has been registered, but is not yet initialized/activated. The initialization order is 2000. ** (process:10698): CRITICAL **: 18:30:36.304: secret_service_load_collections_sync: assertion ‘paths != NULL’ failed [glibsecret] unable to get secret service: Unknown error. Gtk-Message: 18:30:36.415: Failed to load module «colorreload-gtk-module» StatusNotifier/Appindicator support: your desktop does support it and libappindicator is compiled in Remmina. Good. Warning: Remmina is running without a secret plugin. Passwords will be saved in a less secure way. (org.remmina.Remmina:10698): Gtk-WARNING **: 18:30:36.487: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem Remmina is compiled as a SNAP package. but we can’t find the secret plugin inside the SNAP. [18:30:41:843] [10698:10780] [INFO][com.freerdp.core] — freerdp_connect:freerdp_set_last_error_ex resetting error state [18:30:41:844] [10698:10780] [INFO][com.freerdp.client.common.cmdline] — loading channelEx rdpdr [18:30:41:844] [10698:10780] [INFO][com.freerdp.client.common.cmdline] — loading channelEx rdpsnd [18:30:41:844] [10698:10780] [INFO][com.freerdp.client.common.cmdline] — loading channelEx drdynvc [18:30:42:191] [10698:10780] [INFO][com.freerdp.primitives] — primitives autodetect, using optimized [18:30:42:202] [10698:10780] [INFO][com.freerdp.core.nego] — Detecting if host can be reached locally. — This might take some time. [18:30:42:202] [10698:10780] [INFO][com.freerdp.core.nego] — To disable auto detection use /gateway-usage-method:direct [18:30:42:243] [10698:10780] [INFO][com.freerdp.core] — freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state [18:30:43:245] [10698:10780] [ERROR][com.freerdp.core] — freerdp_tcp_connect:freerdp_set_last_error_ex ERRCONNECT_CONNECT_FAILED [0x00020006] [18:30:43:245] [10698:10780] [ERROR][com.freerdp.core] — failed to connect to ххх [18:30:43:326] [10698:10780] [INFO][com.freerdp.core] — freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state [18:31:35:194] [10698:10780] [ERROR][com.freerdp.core] — rdg_establish_data_connection:freerdp_set_last_error_ex ERRCONNECT_ACCESS_DENIED [0x00020016] libfreerdp returned code is 00020016

ПС. С компьютера на котором установлена windows подключается нормально.

Источник

[РЕШЕНО] Отказал RDP

Всем привет, прошу всех знающих людей помочь!
Кратко ситуация: Была установления WMvare workstation. После ее удаления перестал работать RDP клиент Remmina. Думал проблема в программе. Переустановка Remmina не помогла. Установил RDesktop тоже не подключается.

Загрузился с Live usb mint-a. Установленная Remmina заработала. Отсюда делаю вывод, что-то произошло с моими настройками сети.
Интернет работает через вайфай. Google не помог, т.к. не знаю что конкретно искать.

eth0 Link encap:Ethernet HWaddr 00:21:70:74:5d:02
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17

eth1 Link encap:Ethernet HWaddr 00:1f:e2:98:7a:40
inet addr:192.168.188.20 Bcast:192.168.188.255 Mask:255.255.255.0
inet6 addr: fe80::21f:e2ff:fe98:7a40/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68618 errors:2 dropped:0 overruns:0 frame:16484
TX packets:82096 errors:14 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11699364 (11.6 MB) TX bytes:113059017 (113.0 MB)
Interrupt:17 Base address:0xc000

lo Link encap:Локальная петля (Loopback)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:442 errors:0 dropped:0 overruns:0 frame:0
TX packets:442 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41295 (41.2 KB) TX bytes:41295 (41.2 KB)

lo no wireless extensions.

eth1 IEEE 802.11abg ESSID:»John!Box Fon WLAN 7270″
Mode:Managed Frequency:2.412 GHz Access Point: 00:1F:3F:1A:6E:D3
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off

Источник

Remmina 1.3.3 disconnects randomly w/o any warning or obvious reason

My Ubuntu 18.04 upgraded to Remmina 1.3.3 today. After the upgrade, all works fine, but remmina stared disconnecting at random intervals (from a Windows 10 remote machine).

It does not crash — just disconnects. I can reconnect immediately after that, no problem, until the next spontaneous disconnect.

I forgot what else got upgraded today, but there was very little else.

I have not changed my setup or remote machine for half a year now. All was good until today — with all prior versions of Remmina. Never had this issue.

Is there any log where I can see if anything is going on?

I checked dmesg , /var/log/syslog — nothing of interest there.

Here is some sys info — vanilla 18.04.2 LTS (Bionic Beaver):

Here is my remmina:

Local System Description

  • Client (OS name and version):
  • Remmina version ( remmina —version ):
  • Installation mean:
    • Distribution package.
    • PPA.
    • Snap.
    • Flatpak.
    • Compiled from sources.
    • Other — detail:
  • Desktop environment (GNOME, Unity, KDE, ..):
  • Plugin:
    • RDP — freerdp version ( xfreerdp —version ):
    • VNC
    • SSH
    • SFTP
    • SPICE
    • EXEC
    • Other (Please specify):
  • Gtk Backend (Wayland, Xorg, ??):
  • Optional: include the output of the following commands at the end of this text:
    • remmina —full-version
    • sudo lshw -C video
    • uname -a

Remote System Description

  • Server (OS name and version):
  • Special notes regarding the remote system (i.e. gateways, tunnel, etc):

Problem Description

Write here a detailed description of the problem/request.

Источник

Remmina закрывается при подключении

Профиль | Отправить PM | Цитировать

Изображения

Глюк remmina (640).jpg
(90.0 Kb, 12 просмотров)

bpo70+1 (2014-02-07) i686 GNU/Linux. Remmina 0.9.99.1 тоже из дистрибутива. Винда на своем терминальном сервере — Windows 2008 Server Enterprise SP2 x86, на том, к которому нормально подключается — Windows 2008 Server Standard SP2 x64, обе винды лицензионные.
Ума не приложу, из-за чего глюк. Раньше работало, потом обновил Debian (релиз тот же остался, Wheezy), поставил в комп видеокарточку Asus (GeForce) EN210, завел драйвер nvidia из non-free, настроил двухмониторную конфигурацию — и началось. У кого какие идеи на этот счет?

——-
Hasta la victoria siempre!

Adblock
detector


Description


Dmitri A. Sergatskov



2018-01-12 22:31:06 UTC

Description of problem:
When trying to connect to Win10 computer xfreerdp coredumps.

Version-Release number of selected component (if applicable):
freerdp.x86_64                2:2.0.0-35.20171220gitbfe8359.fc27   

How reproducible:
100

Steps to Reproduce:
1. xfreerdp /sec:XXX /d:YYY /u:ZZZ /v:host
 XXX could be rdp|tls|nla|ext -- the error message is different but coredumps
 anyway; YYY, YYY, and host select as appropriate 


Actual results:
With /sec:rdp 
[INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[ERROR][com.freerdp.core.transport] - BIO_read returned a system error 104: Connection reset by peer
[ERROR][com.freerdp.core.nego] - Protocol Security Negotiation Failure
[ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED [0x0002000C]
[ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure
[ERROR][com.freerdp.client.x11] - Freerdp connect error exit status 1
double free or corruption (fasttop)
Aborted (core dumped)

With /sec:tls 
[INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[WARN][com.freerdp.core.nego] - Error: HYBRID_REQUIRED_BY_SERVER
[ERROR][com.freerdp.core.nego] - Protocol Security Negotiation Failure
[ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED [0x0002000C]
[ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure
[ERROR][com.freerdp.client.x11] - Freerdp connect error exit status 1
double free or corruption (fasttop)
Aborted (core dumped)

With /sec:nla 
[INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
Password: 
[INFO][com.winpr.sspi.Kerberos] - Authenticated to Kerberos v5 via login/password
[ERROR][com.winpr.sspi.Kerberos] - Init GSS security context failed : can't use Kerberos
[WARN][com.winpr.sspi] - InitializeSecurityContextA status SEC_E_INTERNAL_ERROR [0x80090304]
[ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_AUTHENTICATION_FAILED [0x00020009]
[ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure
[ERROR][com.freerdp.client.x11] - Freerdp connect error exit status 1
free(): invalid pointer
Aborted (core dumped)


Expected results:

Either connect or exit normally 

Additional info: Can connect to win7, no problem


Comment 5


Dmitri A. Sergatskov



2018-01-17 07:03:56 UTC

rpm -qa | grep freerdp
freerdp-2.0.0-36.20180115git8f52c7e.fc27.x86_64
freerdp-libs-2.0.0-36.20180115git8f52c7e.fc27.x86_64

fixed the problem for me.

Dmitri.


Comment 6


Fedora Update System



2018-01-23 21:45:59 UTC

freerdp-2.0.0-36.20180115git8f52c7e.fc27, remmina-1.2.0-0.45.20180107.git.d70108c.fc27, weston-3.0.0-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Comment 7


Fedora Update System



2018-01-30 17:30:38 UTC

freerdp-2.0.0-36.20180115git8f52c7e.fc26, remmina-1.2.0-0.45.20180107.git.d70108c.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Initial setup: machine was headless, set up TLS using openssl, set key location using grdctl.
Windows RDP client was unable to connect — journalctl showed that the username was unable to be retreived (from dbus?).

Set password using grdctl / https://gitlab.gnome.org/-/snippets/1778#note_1515700

Plugged a monitor and keyboard in, checked Settings and the password was garbage. Reset the password, re-enabled RDP and the Windows client was still unable to connect:

«`
Jul 31 17:34:06 optiplex gnome-remote-de[2585]: RDP server started
Jul 31 17:35:08 optiplex gnome-remote-desktop-daemon[2585]: [17:35:08:914] [2585:2622] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 0: Success
Jul 31 17:35:08 optiplex gnome-remote-desktop-daemon[2585]: [17:35:08:914] [2585:2622] [ERROR][com.freerdp.core] — transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
Jul 31 17:35:08 optiplex gnome-remote-de[2585]: Unable to check file descriptor, closing connection
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:572] [2585:2612] [WARN][com.winpr.negotiate] — AcceptSecurityContext status SEC_I_CONTINUE_NEEDED [0x00090312]
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:573] [2585:2612] [WARN][com.winpr.negotiate] — AcceptSecurityContext status SEC_I_COMPLETE_NEEDED [0x00090313]
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:574] [2585:2612] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 104: Connection reset by peer
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:574] [2585:2612] [ERROR][com.freerdp.core] — transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:574] [2585:2612] [ERROR][com.freerdp.core.nla] — [nla_recv] error: -1
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:574] [2585:2612] [ERROR][com.freerdp.core.transport] — client authentication failure
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:574] [2585:2612] [ERROR][com.freerdp.core.peer] — peer_recv_callback: CONNECTION_STATE_INITIAL — rdp_server_accept_nego() fail
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:574] [2585:2612] [ERROR][com.freerdp.core.transport] — transport_check_fds: transport->ReceiveCallback() — -1
Jul 31 17:35:13 optiplex gnome-remote-desktop-daemon[2585]: [17:35:13:574] [2585:2585] [ERROR][com.freerdp.core.transport] — BIO_should_retry returned a system error 32: Broken pipe
Jul 31 17:35:13 optiplex gnome-remote-de[2585]: Unable to check file descriptor, closing connection
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:568] [2585:2642] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 0: Success
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:568] [2585:2642] [ERROR][com.freerdp.core] — transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
Jul 31 17:35:14 optiplex gnome-remote-de[2585]: Unable to check file descriptor, closing connection
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:569] [2585:2632] [ERROR][com.freerdp.crypto] — invalid private key
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:569] [2585:2632] [ERROR][com.freerdp.core.peer] — peer_recv_callback: CONNECTION_STATE_INITIAL — rdp_server_accept_nego() fail
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:569] [2585:2632] [ERROR][com.freerdp.core.transport] — transport_check_fds: transport->ReceiveCallback() — -1
Jul 31 17:35:14 optiplex gnome-remote-de[2585]: Unable to check file descriptor, closing connection
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:575] [2585:2652] [WARN][com.freerdp.core.connection] — server supports only NLA Security
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:575] [2585:2652] [ERROR][com.freerdp.core.connection] — Protocol security negotiation failure
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:578] [2585:2662] [ERROR][com.freerdp.core.transport] — BIO_read returned a system error 0: Success
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:578] [2585:2662] [ERROR][com.freerdp.core] — transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
Jul 31 17:35:14 optiplex gnome-remote-de[2585]: Unable to check file descriptor, closing connection
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:580] [2585:2652] [ERROR][com.freerdp.core.peer] — peer_recv_callback: CONNECTION_STATE_INITIAL — rdp_server_accept_nego() fail
Jul 31 17:35:14 optiplex gnome-remote-desktop-daemon[2585]: [17:35:14:580] [2585:2652] [ERROR][com.freerdp.core.transport] — transport_check_fds: transport->ReceiveCallback() — -1
Jul 31 17:35:14 optiplex gnome-remote-de[2585]: Unable to check file descriptor, closing connection
Jul 31 17:39:36 optiplex gnome-remote-de[2585]: VNC server started
Jul 31 17:39:39 optiplex gnome-remote-de[2585]: VNC server stopped

«`

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-remote-desktop 42.3-0ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-43.46-generic 5.15.39
Uname: Linux 5.15.0-43-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Jul 31 17:40:26 2022
InstallationDate: Installed on 2022-07-31 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS «Jammy Jellyfish» — Release amd64 (20220419)
SourcePackage: gnome-remote-desktop
UpgradeStatus: No upgrade log present (probably fresh install)

Понравилась статья? Поделить с друзьями:
  • Binding error wpf
  • Binding error spring
  • Binding error 10048 hasp license manager
  • Bindflt sys как исправить
  • Bfsvc error failed to set element application device status c00000bb