{"id":47,"date":"2018-03-28T16:00:29","date_gmt":"2018-03-28T21:00:29","guid":{"rendered":"https:\/\/tech.my-netsol.com\/?p=47"},"modified":"2018-03-28T16:00:29","modified_gmt":"2018-03-28T21:00:29","slug":"how-to-enable-os-x-screen-sharing-vnc-through-ssh","status":"publish","type":"post","link":"https:\/\/tech.my-netsol.com\/?p=47","title":{"rendered":"How to enable OS X screen sharing (VNC) through SSH?"},"content":{"rendered":"<div class=\"container  \">\n<div id=\"content\">\n<div>\n<div class=\"inner-content clearfix\">\n<div id=\"mainbar\" role=\"main\" aria-label=\"question and answers\">\n<div id=\"answers\">\n<div id=\"answer-30239\" class=\"answer accepted-answer\" data-answerid=\"30239\">\n<div class=\"post-layout\">\n<div class=\"answercell post-layout--right\">\n<div class=\"post-text\">\n<p>Source: <a href=\"http:\/\/technotes.twosmallcoins.com\/?p=279\">http:\/\/technotes.twosmallcoins.com\/?p=279<\/a><\/p>\n<p>Putty is a good SSH client for Windows.<\/p>\n<p>1) SSH into your remote OS X machine with an administrator\u2019s log in and password.<\/p>\n<p>2) Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC) with this command:<\/p>\n<pre><code>sudo  \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all\n<\/code><\/pre>\n<p>3) Login using a VNC client. As I mentioned, TightVNC worked for me; for some reason, RealVNC and UltraVNC didn\u2019t. Your password is \u201cmypasswd\u201d (see the -vncpw flag in the above command; you can <em>and should<\/em> change this).<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Source: http:\/\/technotes.twosmallcoins.com\/?p=279 Putty is a good SSH client for Windows. 1) SSH into your remote OS X machine with an administrator\u2019s log in and password. 2) Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC) with this command: sudo \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all &#8230; <a title=\"How to enable OS X screen sharing (VNC) through SSH?\" class=\"read-more\" href=\"https:\/\/tech.my-netsol.com\/?p=47\" aria-label=\"Read more about How to enable OS X screen sharing (VNC) through SSH?\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-macos"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":0,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}