{"id":5048,"date":"2021-06-14T20:17:31","date_gmt":"2021-06-14T20:17:31","guid":{"rendered":"https:\/\/gja.rfl.mybluehost.me\/website_fd74af1b\/how-to-solve-mobaxterm-x11-proxy-authorization-not-recognized-error\/"},"modified":"2026-02-28T17:37:05","modified_gmt":"2026-02-28T17:37:05","slug":"how-to-solve-mobaxterm-x11-proxy-authorization-not-recognized-error","status":"publish","type":"post","link":"https:\/\/onwardpath.com\/intelligence\/how-to-solve-mobaxterm-x11-proxy-authorization-not-recognized-error\/","title":{"rendered":"How to Solve &#8220;MobaXterm X11: Proxy authorization not recognized&#8221; Error"},"content":{"rendered":"<p>When you want to run an interactive program in linux server, and you have logged in through remote shell (with tools like MobaXterm), and you want to use sudo or su command to invoke the interactive program then you may get errors relating to Proxy authorization, when you try to invoke the program<\/p>\n<p style=\"padding-left: 30px;\">For e.g., you enter the command as shown below<\/p>\n<p style=\"padding-left: 30px;\"><strong>[username@servername ~]$ sudo .\/catalogmover.sh<\/strong><\/p>\n<p style=\"padding-left: 30px;\">You will receive the following error message<\/p>\n<p style=\"padding-left: 30px;\"><strong>MobaXterm X11: Proxy authorisation not recognised<\/strong><\/p>\n<h2><\/h2>\n<h2>Steps to resolve this issue<\/h2>\n<ul>\n<li>\u00a0Change to your home director<\/li>\n<\/ul>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [username@servername ~]$ cd ~<\/strong><\/p>\n<ul>\n<li>Run the following command<\/li>\n<\/ul>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0 [username@servername ~]$ xauth list<\/strong><\/p>\n<p style=\"padding-left: 30px;\">This command will list down the session ids as shown below<\/p>\n<p style=\"padding-left: 30px;\"><strong>&lt;ServerName&gt;\/unix:11 MIT MAGIC\u00a0\u00a0 COOKIE\u00a0\u00a0 1 1652db51d8a3a6e1fc837491a706d194<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong>&lt;ServerName&gt;\/unix:10 MIT MAGIC\u00a0\u00a0 COOKIE 1 2df6b584ff6448924900165ae51a7589<\/strong><\/p>\n<ul>\n<li>Copy the last line from the above results and add to the command sudo xauth add as shown below to add the session id to the authorization list<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><strong>[username@servername ~]$ sudo xauth add &lt;ServerName&gt;\/unix:10 MIT MAGIC COOKIE\u00a0\u00a0 <\/strong><strong>1 2df6b584ff6448924900165ae51a7589<\/strong><\/p>\n<p style=\"padding-left: 30px;\">If you did not receive any error message, then the operation is successful.<\/p>\n<ul>\n<li>Now try to run the actual command you were trying to invoke<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><strong>[username@servername ~]$ sudo .\/catalogmover.sh<\/strong><\/p>\n<p style=\"padding-left: 30px;\">You should see the user interface for the command coming up.<\/p>\n<p style=\"padding-left: 30px;\">Remember the .Xauthority file is a hidden file, and so if you check for the file with simple <strong>ls -ltr<\/strong> command it will not be listed.<\/p>\n<p style=\"padding-left: 30px;\">So you should use a command as shown below to check if the file is present.<\/p>\n<p style=\"padding-left: 30px;\"><strong>[username@servername ~]$ ls &#8211; ltr .Xauthority<\/strong><\/p>\n<p>Also, if the file is not present, copy the file from the root directory, and then change the permissions and ownership for the file.<\/p>\n<p style=\"padding-left: 30px;\"><strong>[username@servername ~]$ sudo cp &#8211; p \/root\/.Xauthority .\/<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong>[username@servername ~]$ sudo chmod 600 .Xauthority<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong>[username@servername ~]$ sudo chown &lt;username&gt; .Xauthority<\/strong><\/p>\n<p>(In the above command<strong> &lt;<em>username&gt;<\/em><\/strong> is your <strong><em>user-id<\/em><\/strong> )<\/p>\n<p>Hope this helps. Happy linuxing !!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you want to run an interactive program in linux server, and you have logged in through remote shell (with tools like MobaXterm), and you want to use sudo or su command to invoke the interactive program then you may get errors relating to Proxy authorization, when you try to invoke the program For e.g., [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":4176,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[37],"tags":[45],"class_list":["post-5048","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology-blog","tag-technology-blog"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/onwardpath.com\/intelligence\/wp-content\/uploads\/2020\/09\/12-error.jpg?fit=1350%2C845&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts\/5048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/comments?post=5048"}],"version-history":[{"count":1,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts\/5048\/revisions"}],"predecessor-version":[{"id":6662,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/posts\/5048\/revisions\/6662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/media\/4176"}],"wp:attachment":[{"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/media?parent=5048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/categories?post=5048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onwardpath.com\/intelligence\/wp-json\/wp\/v2\/tags?post=5048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}