{"id":16716,"date":"2024-11-06T13:19:48","date_gmt":"2024-11-06T13:19:48","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=16716"},"modified":"2024-11-06T14:34:34","modified_gmt":"2024-11-06T14:34:34","password":"","slug":"how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/","title":{"rendered":"How to Remotely Access Windows Server (RDP) from Linux using Command Line\/terminal"},"content":{"rendered":"\n<p>This is a guide on how to RDP from Linux to Windows command line.<\/p>\n\n\n\n<p>For those who want to use an RDP client like <strong>Remmina<\/strong>, please check <strong><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-remmina\/\" target=\"_blank\" rel=\"noreferrer noopener\">this guide. <\/a><\/strong><\/p>\n\n\n\n<p>Those of us who like sailing from the command line, you can access your windows server from your terminal using these steps. You will need to install a tool that enables your connection<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><strong>Xfreerdp<\/strong> Installed on Your Linux System<\/strong> &#8211; If it&#8217;s not installed, you can easily add it via the package manager for your Linux distribution as shown below.<\/li>\n\n\n\n<li><strong>Remote Desktop Enabled on Windows<\/strong>: Ensure Remote Desktop is enabled on the Windows machine you wish to connect to. Truehost Windows Servers will have this enabled already.<\/li>\n\n\n\n<li><strong>Windows server  IP Address\/Hostname and Credentials<\/strong>: Have the IP address of the Windows machine and your login credentials ready.<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 1: Install &#8220;xfreerdp&#8221;<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can install xfreerdp using your systems package manager<\/li>\n<\/ul>\n\n\n\n<p><strong>For Ubuntu<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-install xfreerdp<\/code><\/pre>\n\n\n\n<p><strong>For Almalinux\/Centos\/RHE Based systems<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install xfreerdp<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"463\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1024x463.png\" alt=\"\" class=\"wp-image-16722\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1024x463.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-300x136.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-768x347.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1536x694.png 1536w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71.png 1838w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 2: Run the Command<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your terminal and use the following command to establish the RDP connection.<\/li>\n\n\n\n<li>Replace <code>&lt;username><\/code>, <code>&lt;password><\/code>, and <code>&lt;IP_address_or_hostname><\/code> with your Windows account details and the target machine&#8217;s IP Address.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>xfreerdp \/u:&lt;<strong>username<\/strong>> \/p:&lt;<strong>password<\/strong>> \/v:&lt;<strong>IP_address_or_hostname<\/strong>><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will be asked if you trust the server certificate : <strong>Do you trust the above certificate? (Y\/T\/N) <\/strong><\/li>\n\n\n\n<li>Respond with a <strong>Y<\/strong>, followed by <strong>Enter<\/strong> to proceed<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-72-1024x477.png\" alt=\"\" class=\"wp-image-16723\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-72-1024x477.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-72-300x140.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-72-768x358.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-72.png 1210w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A connection will be established and the RDP window will open, giving you access to the server.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"701\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-73-1024x701.png\" alt=\"\" class=\"wp-image-16724\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-73-1024x701.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-73-300x205.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-73-768x525.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-73.png 1276w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Note that the RDP windows is bound to the terminal session where you ran the command. If you close that terminal session, the RDP windows closes along.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Author&#8217;s Final Word<\/h3>\n\n\n\n<p>I really hope that you have managed to access your Windows server with the above steps. If you still haven&#8217;t, please check with our <strong><a href=\"https:\/\/wa.me\/19726743814\" target=\"_blank\" rel=\"noreferrer noopener\">support team<\/a><\/strong> for further help<\/p>\n\n\n\n<p>There are <strong><a href=\"http:\/\/www.rdesktop.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">other tools<\/a><\/strong> that can serve the same purpose as <strong>xfreerdp<\/strong>. You are thus not limited to xfreerdp but you are encouraged to explore more. <\/p>\n\n\n\n<p>If you have more questions, please reach out to Truehost <strong><a href=\"https:\/\/wa.me\/19726743814\" target=\"_blank\" rel=\"noreferrer noopener\">support team <\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a guide on how to RDP from Linux to Windows command line. For those who want to use an RDP client like Remmina, please check this guide. Those of us who like sailing from the command line, you can access your windows server from your terminal using these steps. You will need to [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1820,1824,1880,1879,2128,2133],"doc_tag":[],"class_list":["post-16716","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-dedicated-servers","doc_category-remote-access","doc_category-servers","doc_category-vps-servers","doc_category-windows-server"],"year_month":"2026-06","word_count":358,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"dedicated servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"remote access","term_url":"https:\/\/truehost.com\/support\/docs-category\/remote-access\/"},{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/vps-servers\/"},{"term_name":"Windows Server","term_url":"https:\/\/truehost.com\/support\/docs-category\/windows-server\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Remotely Access Windows Server (RDP) from Linux using Command Line\/terminal -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remotely Access Windows Server (RDP) from Linux using Command Line\/terminal -\" \/>\n<meta property=\"og:description\" content=\"This is a guide on how to RDP from Linux to Windows command line. For those who want to use an RDP client like Remmina, please check this guide. Those of us who like sailing from the command line, you can access your windows server from your terminal using these steps. You will need to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-06T14:34:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1024x463.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/\",\"name\":\"How to Remotely Access Windows Server (RDP) from Linux using Command Line\\\/terminal -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-71-1024x463.png\",\"datePublished\":\"2024-11-06T13:19:48+00:00\",\"dateModified\":\"2024-11-06T14:34:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-71-1024x463.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-71-1024x463.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Remotely Access Windows Server (RDP) from Linux using Command Line\\\/terminal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remotely Access Windows Server (RDP) from Linux using Command Line\/terminal -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/","og_locale":"en_US","og_type":"article","og_title":"How to Remotely Access Windows Server (RDP) from Linux using Command Line\/terminal -","og_description":"This is a guide on how to RDP from Linux to Windows command line. For those who want to use an RDP client like Remmina, please check this guide. Those of us who like sailing from the command line, you can access your windows server from your terminal using these steps. You will need to [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/","article_modified_time":"2024-11-06T14:34:34+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1024x463.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/","name":"How to Remotely Access Windows Server (RDP) from Linux using Command Line\/terminal -","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1024x463.png","datePublished":"2024-11-06T13:19:48+00:00","dateModified":"2024-11-06T14:34:34+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1024x463.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-71-1024x463.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-remotely-access-windows-server-rdp-from-linux-using-command-line-terminal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Remotely Access Windows Server (RDP) from Linux using Command Line\/terminal"}]},{"@type":"WebSite","@id":"https:\/\/www.truehost.com\/support\/#website","url":"https:\/\/www.truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/www.truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/www.truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/16716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=16716"}],"version-history":[{"count":6,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/16716\/revisions"}],"predecessor-version":[{"id":16731,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/16716\/revisions\/16731"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=16716"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=16716"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=16716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}