I have received credentials for my University's network machine (Ubuntu yay!) that I have ssh access to. I would like to connect to it but first I need to connect through a gateway that I have specified in .rdp file received from my University.

On Windows I just double click on it and I have the session - first asking about domain credentials.

I have the following knowledge:

  • username
  • password
  • gateway hostname e.g. secretgateway.net
  • hostname e.g. myhost.local
  • domain name e.g. pluto
  • server port 3389

I know I can use likewise-open for connecting to windows domains but how do I specify it there since it is a remote network for me ?

EDIT after Remmina import ( there is no information about domain login nor the gateway)

enter image description here


I have also tried with xfreerdp :

xfreerdp /v:myhost.local /d:pluto /u:USER /p:PASS /g:secretgateway.net

and I get

transport_connect: getaddrinfo (Name or service not known) Error: protocol security negotiation failure


using new version of xfreerdp I get to launch my con.rdp file and I get the following

$  xfreerdp conn.rdp /p:PASS
autoreconnection enabled:i:1
server port:i:3389
authentication level:i:0
remoteapplicationname:s:ubuntu 12.04 v2.1 [60 GB HDD]
full address:s:myhost.local
connection type:i:5
screen mode id:i:2
use multimon:i:1
session bpp:i:32
allow font smoothing:i:1
allow desktop composition:i:1
disable wallpaper:i:0
disable full window drag:i:0
disable menu anims:i:0
disable themes:i:0
disable cursor setting:i:0
loading channel rail
connected to secretgateway.net:443
connected to secretgateway.net:443
Could not open SAM file!
Could not open SAM file!
Could not open SAM file!
Could not open SAM file!
rts_connect error! Status Code: 401
HTTP/1.1 401 Unauthorized
Content-Type: text/plain
Server: Microsoft-IIS/7.5
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="secretgateway.net"
X-Powered-By: ASP.NET
Date: Wed, 26 Mar 2014 00:19:57 GMT
Content-Length: 13

rts_connect error!
rpc_connect failed!
Error: protocol security negotiation or connection failure
WaitForSingleObject: pthread_join failure: 3

3 Answers 3


Okay to do this you need a version of xfreerdp that is higher than in the official repo's

sudo apt-get purge freerdp

sudo apt-get install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev \
  libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev \
  libxrandr-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libxi-dev libgstreamer-plugins-base1.0-dev

git clone git://github.com/FreeRDP/FreeRDP.git

cd FreeRDP

sudo make install
echo '/usr/local/lib/freerdp' | sudo tee --append /etc/ld.so.conf.d/freerdp.conf

Okay now you should be able to connect from the command line:

xfreerdp /v:myhost.local /d:pluto /u:USER /p:PASS /g:secretgateway.net

GUI Remmina gateway option

So this is actually being discussed as a new feature for remmina RDP plugin on github here.

There is just a problem with securley storing gateway password, as remmina's plugin architecture only allows one secret to be stored per connection. I am currently looking into fixing this for my self and if I get it finished will put a pull request in.

I have patched Remmina's rdp plugin to have a gateway field and would gladly let you have the patched version but it assumes that the gateway credentials are the same as your credentials for the target box in a lot of cases this is true.


There are version of FreeRDP which Remmina uses that does support an RDP Gateway, but it is buggy and I haven't gotten it to work reliably. I have only been successful connecting from the commandline using FreeRDP, but it regularly crashes on me so I consider it non-usable and go through a VPN option instead.

  • I have also managed to get it to work but the screen is somehow buggy/flickering. Non usable for me either.
    – Patryk
    Apr 30, 2014 at 15:40

With remote desktop client (just a frontend for rdesktop) you can select an .rdp file that you use to import all the settings to login. Maybe this will work. it's avalible trough the Ubuntu software centr (apt://grdesktop)

  • I can open the .rdp file but it won't work .
    – Patryk
    Mar 25, 2014 at 23:04
  • I tried the following and this seems to work; install remmina (apt-get install remmina ,, most of the times already installed) and from the the menu tools > import select the .rdp file. After that just open it from the main window
    – radriaanse
    Mar 25, 2014 at 23:29
  • 1
    The OP asked about remote desktop gateway functionality. This question doesn't address that.
    – flickerfly
    Apr 30, 2014 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.