{"id":39222,"date":"2023-04-28T14:07:26","date_gmt":"2023-04-28T18:07:26","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=39222"},"modified":"2023-04-29T13:15:23","modified_gmt":"2023-04-29T17:15:23","slug":"allowing-a-remote-computer-to-access-your-mac","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/04\/28\/allowing-a-remote-computer-to-access-your-mac\/","title":{"rendered":"Allowing a Remote Computer to Access Your Mac"},"content":{"rendered":"<p><a href=\"https:\/\/support.apple.com\/en-us\/guide\/mac-help\/mchlp1066\/mac\">Apple<\/a>:<\/p>\n<blockquote cite=\"https:\/\/support.apple.com\/en-us\/guide\/mac-help\/mchlp1066\/mac\">\n<p>Turn on Remote Login to access your Mac from another computer using SSH (Secure Shell Protocol) or SFTP (SSH File Transfer Protocol).<\/p>\n<\/blockquote>\n<p>This had been working for me for a long time, but at some point something happened to my TCC database and then <code>rsync<\/code> started failing:<\/p>\n\n<pre>rsync: opendir \"\/Users\/mjt\/Documents\/C-Command\/.\" failed: Operation not permitted (1)\nrsync: failed to set times on \"\/Users\/mjt\/Documents\/Code\/Git\": Operation not permitted (1)\n<\/pre>\n\n<p>This looked like a Full Disk Access problem, but the <a href=\"https:\/\/developer.apple.com\/forums\/thread\/126497\">old solution<\/a> of adding <code>sshd<\/code> and <code>rsync<\/code> to <strong>System Settings &#x2023; Privacy &amp; Security &#x2023; Full Disk Access<\/strong> didn&rsquo;t help.<\/p>\n\n<p>The trick is that there&rsquo;s now a separate <strong>Allow full disk access for remote users<\/strong> setting, but it&rsquo;s under <strong>General &#x2023; Sharing<\/strong> instead of <strong>Privacy &amp; Security &#x2023; Full Disk Access<\/strong>. And it&rsquo;s <a href=\"https:\/\/derflounder.wordpress.com\/2021\/09\/29\/enabling-full-disk-access-for-ssh-on-macos-big-sur-using-a-management-profile\/\">now<\/a> only visible if you click the little <strong>i<\/strong> button next to <strong>Remote Login<\/strong>. With this selected, you don&rsquo;t need to give <code>sshd<\/code> Full Disk Access.<\/p>\n<p>There is no corresopnding setting in the <strong>i<\/strong> next to <strong>File Sharing<\/strong>, so perhaps you <a href=\"https:\/\/mjtsai.com\/blog\/2020\/02\/18\/catalina-data-protections-break-file-sharing\/\">still<\/a> have to give <code>smbd<\/code> Full Disk Access manually.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/02\/09\/resetting-tcc\/\">Resetting TCC<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/12\/30\/fixing-smb-file-sharing-in-ventura\/\">Fixing SMB File Sharing in Ventura<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/11\/02\/ventura-drops-older-ssh-support\/\">Ventura Drops Older SSH Support<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/07\/23\/macos-11-5\/\">macOS 11.5<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/07\/13\/overview-of-tcc-bypasses-by-accident-and-design\/\">Overview of TCC Bypasses by Accident and Design<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/03\/15\/mac-software-updates-open-up-sshd\/\">Mac Software Updates Open Up sshd<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/07\/03\/mount_apfs-tcc-bypass-and-privilege-escalation\/\">mount_apfs TCC Bypass and Privilege Escalation<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/02\/18\/catalina-data-protections-break-file-sharing\/\">Catalina Data Protections Break File Sharing<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/11\/01\/macos-10-14-1\/\">macOS 10.14.1<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Apple: Turn on Remote Login to access your Mac from another computer using SSH (Secure Shell Protocol) or SFTP (SSH File Transfer Protocol). This had been working for me for a long time, but at some point something happened to my TCC database and then rsync started failing: rsync: opendir \"\/Users\/mjt\/Documents\/C-Command\/.\" failed: Operation not permitted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2023-04-28T18:07:28Z","apple_news_api_id":"efe68c71-ea49-4b46-8961-e17d293f7432","apple_news_api_modified_at":"2023-04-29T17:15:26Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAg==","apple_news_api_share_url":"https:\/\/apple.news\/A7-aMcepJS0aJYeF9KT90Mg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1511,30,2223,476,1771,1601,48,2029,506,1181,1960],"class_list":["post-39222","post","type-post","status-publish","format-standard","hentry","category-technology","tag-file-sharing","tag-mac","tag-macos-13-ventura","tag-networking","tag-rsync","tag-screen-sharing","tag-security","tag-server-message-block-smb","tag-ssh","tag-system-preferences","tag-transparency-consent-and-control-tcc"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=39222"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39222\/revisions"}],"predecessor-version":[{"id":39224,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39222\/revisions\/39224"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=39222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=39222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=39222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}