[{"data":1,"prerenderedAt":824},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fsettings\u002Fssh":3,"docs-nav":708},{"id":4,"title":5,"body":6,"description":698,"extension":699,"meta":700,"modified":701,"navigation":702,"path":704,"seo":705,"stem":706,"__hash__":707},"docs\u002Fdocs\u002Fsettings\u002Fssh.md","SSH Access",{"type":7,"value":8,"toc":689},"minimark",[9,13,17,26,31,34,68,72,138,157,161,167,187,190,194,229,232,243,256,262,267,289,310,342,355,388,420,434,458,507,510,546,553,562,606,624,686],[10,11,5],"h1",{"id":12},"ssh-access",[14,15,16],"p",{},"SSH access lets an admin sign in to the Quark itself, from a computer on the home network, and run commands there. Most\nhouseholds never need it. It is off until an admin turns it on, and only admins can see the setting.",[14,18,19,20,25],{},"Remote access is how you open the Quark app when you are away from home. SSH access is a separate sign-in to the\nmachine. Remote access does not include it. ",[21,22,24],"a",{"href":23},"\u002Fdocs\u002Fsettings\u002Fremote-access","Remote Access"," covers the app.",[27,28,30],"h2",{"id":29},"what-it-gives-away","What it gives away",[14,32,33],{},"Treat SSH access like handing someone the keys to the Quark.",[35,36,37,50,56,62],"ul",{},[38,39,40,44,45,49],"li",{},[41,42,43],"strong",{},"One account."," The sign-in is the ",[46,47,48],"code",{},"quark"," account. The root account cannot sign in this way, and its password stays\nlocked.",[38,51,52,55],{},[41,53,54],{},"The same account Quark runs as."," Whoever signs in can read the files Quark keeps, for every account. Each account\nhas its own vault. That vault opens with the password the account uses to sign in. This sign-in does not open it.",[38,57,58,61],{},[41,59,60],{},"A few actions as root."," The account can mount and unmount drives, turn this sign-in on and off, set its own\npassword, rename the Quark, and read drive health. Those are the root actions, and the list stops there.",[38,63,64,67],{},[41,65,66],{},"Your home network."," Remote access does not carry this sign-in. Leave it on the network the Quark is already on.\nThe port and the firewall rule are in Nerd Notes.",[27,69,71],{"id":70},"how-to-use-it","How to use it",[73,74,75,94,104,129,135],"ol",{},[38,76,77,78,81,82,85,86,89,90,93],{},"Open ",[41,79,80],{},"Settings → Network"," and scroll to ",[41,83,84],{},"SSH access",". It sits below ",[41,87,88],{},"Connected devices",", and below ",[41,91,92],{},"Device\nname"," when that is shown. Only admins see it.",[38,95,96,97,99,100,103],{},"Turn on the ",[41,98,84],{}," switch. Quark asks you to confirm. The warning says that anyone on your network with an\nallowed key, or the password if you set one, can sign in and run commands, and that the firewall will open. Choose\n",[41,101,102],{},"Turn on",".",[38,105,106,107],{},"Give it a way in. Either one works, and you can use both.\n",[35,108,109,120],{},[38,110,111,112,115,116,119],{},"Under ",[41,113,114],{},"Allowed keys",", choose ",[41,117,118],{},"Add key"," and paste a public key. Never paste a private key. Each key is listed\nwith its fingerprint. An empty list names the kind of file to copy from.",[38,121,111,122,115,125,128],{},[41,123,124],{},"Login password",[41,126,127],{},"Set password",". Type it twice. It needs at least 12 characters. The page says\nQuark does not store it, so keep a copy somewhere you can find.",[38,130,131,132,134],{},"From a computer on the same network, sign in as ",[46,133,48],{},". Nerd Notes has the command, including what to use if you\nrenamed the Quark.",[38,136,137],{},"Turn the switch off when you are done. That stops the sign-in and closes the firewall opening. Your keys and the\npassword stay where they are.",[14,139,140,141,144,145,148,149,152,153,156],{},"To take a key away, choose ",[41,142,143],{},"Remove key"," next to it. Quark asks ",[41,146,147],{},"Remove key?",". Choose ",[41,150,151],{},"Remove",". To drop the\npassword and leave keys as the only way in, choose ",[41,154,155],{},"Clear password",". You can do either whether the switch is on or\noff.",[27,158,160],{"id":159},"if-something-goes-wrong","If something goes wrong",[14,162,163,164,166],{},"In place of the switch, ",[41,165,84],{}," can say it can't be managed. The message names what to run on the Quark. The\nexact sentences are in Nerd Notes. In short, one of these is true:",[35,168,169,172,175,178,181],{},[38,170,171],{},"The Quark is not running Linux.",[38,173,174],{},"Quark is not running as its installed service.",[38,176,177],{},"The SSH server is not installed.",[38,179,180],{},"Quark's helper for this setting is missing.",[38,182,183,184,186],{},"The ",[46,185,48],{}," account cannot sign in yet.",[14,188,189],{},"On a container, expect one of those messages. Use your container platform's own shell instead.",[27,191,193],{"id":192},"related","Related",[35,195,196,201,208,215,222],{},[38,197,198,200],{},[21,199,24],{"href":23},": opening the app away from home",[38,202,203,207],{},[21,204,206],{"href":205},"\u002Fdocs\u002Fhelp\u002Fsecurity-guide","Security Guide",": what to check if you think someone got in",[38,209,210,214],{},[21,211,213],{"href":212},"\u002Fdocs\u002Fvault","Vault",": each account's vault",[38,216,217,221],{},[21,218,220],{"href":219},"\u002Fdocs\u002Fnerd-notes\u002Fself-hosting","Self-Hosting",": installing Quark on a Linux computer",[38,223,224,228],{},[21,225,227],{"href":226},"\u002Fdocs\u002Fnerd-notes","Nerd Notes",": how Quark runs on the box",[27,230,227],{"id":231},"nerd-notes",[14,233,234,235,238,239,242],{},"Checked against quark v0.56.2. ",[46,236,237],{},"main"," was one commit ahead (",[46,240,241],{},"c0f4eefc","), a performance-test change that does not touch\nSSH, the vault, or remote access.",[14,244,245,248,249,251,252,255],{},[41,246,247],{},"The switch and the warning."," The switch title is ",[41,250,84],{},". The subtitle is \"Sign in to this Quark as quark\nover SSH, on port 22\". The dialog title is ",[41,253,254],{},"Turn on SSH access?"," and the message is:",[257,258,259],"blockquote",{},[14,260,261],{},"Anyone on your network with an allowed key, or the password if you set one, can sign in to this Quark as quark and\nrun commands on it. Port 22 opens in the firewall. Turn it off when you are done.",[14,263,264,265,103],{},"The confirm button is ",[41,266,102],{},[14,268,269,272,273,276,277,280,281,284,285,288],{},[41,270,271],{},"How you sign in."," From a computer that can reach the Quark, run ",[46,274,275],{},"ssh quark@quark.local",". If an admin renamed the\nQuark under ",[41,278,279],{},"Device name",", use that hostname. sshd listens on port 22 on the machine's interfaces. Remote access\nproxies the Quark app to the local web port. It does not forward port 22, and it does not open a port on your router\n(",[46,282,283],{},"startProxyLocked"," in ",[46,286,287],{},"pkg\u002Futil\u002Fremoteutil\u002Fhelpers.go","). Do not forward port 22 yourself.",[14,290,291,294,295,298,299,302,303,306,307,309],{},[41,292,293],{},"Keys."," Paste one OpenSSH public key, such as the contents of ",[46,296,297],{},"~\u002F.ssh\u002Fid_ed25519.pub",". The empty list says \"No keys\nyet. Add a public key, such as the contents of id_ed25519.pub.\" Options such as ",[46,300,301],{},"command="," are dropped. Keys are stored\nat ",[46,304,305],{},"\u002Fvar\u002Flib\u002Fquark\u002F.ssh\u002Fauthorized_keys",". Each row shows the key type, the SHA256 fingerprint, and the comment.\n",[41,308,143],{}," is the row's button. The dialog names that key's fingerprint and says it will no longer be able to\nsign in.",[14,311,312,315,316,319,320,323,324,326,327,330,331,334,335,284,338,341],{},[41,313,314],{},"Password."," At least 12 characters (",[46,317,318],{},"MinPasswordLength","), no control characters, and at most 1024. The helper pipes\nit to ",[46,321,322],{},"chpasswd"," for the ",[46,325,48],{}," account. Quark does not store it, and status does not report whether one is set.\n",[41,328,329],{},"Clear SSH password?"," says \"Only allowed keys will be able to sign in.\" Clearing it sets the password field to ",[46,332,333],{},"*",",\nso no password matches and keys still work (",[46,336,337],{},"clear-password",[46,339,340],{},"internal\u002Finstall\u002Fssh_access.go","). Snack bars say \"SSH\npassword set\" and \"SSH password cleared\".",[14,343,344,347,348,351,352,354],{},[41,345,346],{},"What may run as root."," ",[46,349,350],{},"\u002Fetc\u002Fsudoers.d\u002Fquark"," lets the ",[46,353,48],{}," account run, as root:",[35,356,357,370,376,382],{},[38,358,359,362,363,366,367],{},[46,360,361],{},"mount"," and ",[46,364,365],{},"umount"," under ",[46,368,369],{},"\u002Fvar\u002Flib\u002Fquark\u002Fdata\u002Fmounts\u002F",[38,371,372,375],{},[46,373,374],{},"\u002Fusr\u002Flocal\u002Flibexec\u002Fquark\u002Fssh-access",", which turns SSH on or off and sets or clears the password",[38,377,378,381],{},[46,379,380],{},"\u002Fusr\u002Flocal\u002Flibexec\u002Fquark\u002Fset-hostname",", which renames the machine",[38,383,384,387],{},[46,385,386],{},"\u002Fusr\u002Flocal\u002Flibexec\u002Fquark\u002Fdrive-health",", which runs one health read of a whole disk",[14,389,390,391,284,394,396,397,400,401,404,405,408,409,412,413,416,417,103],{},"Nothing else is in that file (",[46,392,393],{},"sudoersContent",[46,395,340],{},"). Turning SSH on enables\n",[46,398,399],{},"ssh.service",", keeps ",[46,402,403],{},"ssh.socket"," off, and, when ",[46,406,407],{},"ufw"," is installed, allows ",[46,410,411],{},"22\u002Ftcp",". Turning it off stops the service\nand deletes that rule. The choice survives a restart. ",[46,414,415],{},"quark install"," locks root's password on every start.\n",[46,418,419],{},"PermitRootLogin no",[14,421,422,425,426,429,430,433],{},[41,423,424],{},"The vault."," Each account has its own vault, and it opens with the password that account uses to sign in. The\nhousehold vault is gone, and there is no master password. Items are ciphertext in the main database, and a query is\nscoped to that account. Someone with the database, including this SSH login, reads ciphertext. Unlocking happens in\nthe app. A wrong password fails on the device and sends nothing. ",[46,427,428],{},"POST \u002Fapi\u002Fv0\u002Fvault\u002Funlock"," is gone.\n",[21,431,213],{"href":432},"\u002Fdocs\u002Fvault#nerd-notes"," has the wraps and the routes.",[14,435,436,347,439,442,443,446,447,450,451,284,454,457],{},[41,437,438],{},"When Settings can't manage it.",[46,440,441],{},"GET \u002Fapi\u002Fv0\u002Fssh\u002Fstatus"," is admin-only. When ",[46,444,445],{},"available"," is false, ",[46,448,449],{},"reason"," is one\nof these, and the app shows that sentence (",[46,452,453],{},"sshUnavailable",[46,455,456],{},"lib\u002Futils\u002Ferror_text.dart","):",[35,459,460,466,476,489,498],{},[38,461,462,465],{},[46,463,464],{},"unsupported_os",": \"SSH access can only be managed on a Quark running Linux.\"",[38,467,468,471,472,475],{},[46,469,470],{},"not_service",": \"Quark isn't running as its installed service. On the device, run ",[46,473,474],{},"sudo quark install",", then manage\nSSH access here.\"",[38,477,478,481,482,485,486,488],{},[46,479,480],{},"sshd_missing",": \"The SSH server isn't installed. On the device, run ",[46,483,484],{},"sudo apt install openssh-server",", then\n",[46,487,474],{},".\"",[38,490,491,494,495,497],{},[46,492,493],{},"helper_missing",": \"Quark's SSH helper isn't installed yet. On the device, run ",[46,496,474],{}," to add it.\"",[38,499,500,503,504,506],{},[46,501,502],{},"no_login_shell",": \"The quark account can't sign in yet. On the device, run ",[46,505,474],{}," to give it a login\nshell.\"",[14,508,509],{},"Anything else shows \"SSH access can't be managed on this Quark.\"",[14,511,512,518,519,522,523,525,526,529,530,529,533,536,537,539,540,542,543,545],{},[41,513,514,515,517],{},"What ",[46,516,415],{}," writes."," On Linux it writes ",[46,520,521],{},"\u002Fetc\u002Fssh\u002Fsshd_config.d\u002F00-quark.conf",": ",[46,524,419],{},",\n",[46,527,528],{},"AllowUsers quark",", ",[46,531,532],{},"MaxAuthTries 3",[46,534,535],{},"LoginGraceTime 30",", keys from ",[46,538,305],{},", and\npassword authentication for ",[46,541,48],{},". ",[46,544,528],{}," applies to every SSH sign-in on that machine. If you reach\nthe machine as your own user, check that you still can before you close the session.",[14,547,548,549,552],{},"When fail2ban is already installed, install adds the jail ",[46,550,551],{},"quark-sshd",". It bans an address from port 22 for ten\nminutes after five failed passwords in ten minutes. Quark does not install fail2ban. The filter matches failed\npasswords and does not count offered keys. The web app is unaffected.",[14,554,183,555,557,558,561],{},[46,556,48],{}," account is created with no home directory and with ",[46,559,560],{},"\u002Fbin\u002Fbash"," as its shell. Nobody can sign in until an\nadmin adds a key or sets a password.",[14,563,564,567,568,571,572,575,576,578,579,582,583,586,587,590,591,593,594,362,596,598,599,601,602,605],{},[41,565,566],{},"In a container."," The published image ",[46,569,570],{},"ghcr.io\u002Fautobutler-org\u002Fquark:0.56.2"," (the same manifest as ",[46,573,574],{},":latest",") has no\nSSH server. Its ",[46,577,48],{}," user is uid 999, gid 999, home ",[46,580,581],{},"\u002Fvar\u002Flib\u002Fquark",", shell ",[46,584,585],{},"\u002Fusr\u002Fsbin\u002Fnologin",". It is in the ",[46,588,589],{},"disk","\ngroup, gid 6. The image's ",[46,592,350],{}," allows only ",[46,595,361],{},[46,597,365],{}," under\n",[46,600,369],{},". The three helpers above are not in the image. Expect one of the messages in the table.\nUse the container platform's shell. ",[21,603,220],{"href":604},"\u002Fdocs\u002Fnerd-notes\u002Fself-hosting#in-a-container"," covers the image.",[14,607,608,611,612,615,616,619,620,623],{},[41,609,610],{},"Routes."," All of these are admin-only, under ",[46,613,614],{},"\u002Fapi\u002Fv0",". An unknown ",[46,617,618],{},"\u002Fapi\u002Fv0\u002F..."," path can answer 200 with the web\napp's HTML, so check ",[46,621,622],{},"Content-Type"," before you trust a 200.",[35,625,626,643,656,665,671,680],{},[38,627,628,631,632,529,634,529,636,639,640,103],{},[46,629,630],{},"GET \u002Fssh\u002Fstatus"," reports ",[46,633,445],{},[46,635,449],{},[46,637,638],{},"enabled",", and ",[46,641,642],{},"keys",[38,644,645,648,649,652,653,103],{},[46,646,647],{},"PUT \u002Fssh\u002Fenabled"," takes ",[46,650,651],{},"{\"enabled\": true}"," or ",[46,654,655],{},"{\"enabled\": false}",[38,657,658,648,661,664],{},[46,659,660],{},"POST \u002Fssh\u002Fkeys",[46,662,663],{},"{\"key\": \"\u003Cone public key line>\"}",". A key that is not an OpenSSH public key is 400. A\nduplicate is 409.",[38,666,667,670],{},[46,668,669],{},"DELETE \u002Fssh\u002Fkeys?fingerprint=SHA256:..."," removes one key. The fingerprint is a query parameter because it can\ncontain a slash. An unknown fingerprint is 404.",[38,672,673,648,676,679],{},[46,674,675],{},"PUT \u002Fssh\u002Fpassword",[46,677,678],{},"{\"password\": \"\u003Cthe password>\"}",". Too short, too long, or a control character is 400.",[38,681,682,685],{},[46,683,684],{},"DELETE \u002Fssh\u002Fpassword"," clears it.",[14,687,688],{},"A change while SSH cannot be managed is 409, \"SSH access can't be managed on this Quark.\"",{"title":690,"searchDepth":691,"depth":691,"links":692},"",2,[693,694,695,696,697],{"id":29,"depth":691,"text":30},{"id":70,"depth":691,"text":71},{"id":159,"depth":691,"text":160},{"id":192,"depth":691,"text":193},{"id":231,"depth":691,"text":227},"How an admin turns on a command-line sign-in from the home network, and what that gives away","md",{},"2026-10-26T20:59:09-04:00",{"title":5,"order":703},3,"\u002Fdocs\u002Fsettings\u002Fssh",{"title":5,"description":698},"docs\u002Fsettings\u002Fssh","MC1Lt1Wyj0rSFQm6bvmvpFfiuNI7TyhKwAox59Odw-A",[709,714,718,722,726,730,735,739,743,747,752,755,757,759,763,767,769,771,776,780,784,788,793,797,802,806,810,814,818,822],{"path":710,"title":711,"navigation":712},"\u002Fdocs\u002Fbooks","Books",{"title":711,"order":713},1,{"path":715,"title":716,"navigation":717},"\u002Fdocs\u002Fcalendar","Calendar",{"title":716,"order":713},{"path":719,"title":720,"navigation":721},"\u002Fdocs\u002Fchat","Chat",{"title":720,"order":713},{"path":723,"title":724,"navigation":725},"\u002Fdocs\u002Fdocs","Docs",{"title":724,"order":713},{"path":727,"title":728,"navigation":729},"\u002Fdocs\u002Ffiles\u002Ffile-types","File Types",{"title":728,"order":691},{"path":731,"title":732,"navigation":733},"\u002Fdocs\u002Ffiles\u002Fgoogle-takeout","Moving from Google with Google Takeout",{"title":734,"order":703},"Google Takeout Guide",{"path":736,"title":737,"navigation":738},"\u002Fdocs\u002Ffiles","Files",{"title":737,"order":713},{"path":740,"title":741,"navigation":742},"\u002Fdocs\u002Fhelp\u002Faccessibility","Accessibility",{"title":741,"order":703},{"path":744,"title":745,"navigation":746},"\u002Fdocs\u002Fhelp","Help",{"title":745,"order":713},{"path":748,"title":749,"navigation":750},"\u002Fdocs\u002Fhelp\u002Fkeyboard-shortcuts","Keyboard Shortcuts",{"title":749,"order":751},4,{"path":205,"title":753,"navigation":754},"Things You Should Know (Security Guide)",{"title":206,"order":691},{"path":226,"title":227,"navigation":756},{"title":227,"order":713},{"path":219,"title":220,"navigation":758},{"title":220,"order":691},{"path":760,"title":761,"navigation":762},"\u002Fdocs\u002Fphotos","Photos",{"title":761,"order":713},{"path":764,"title":765,"navigation":766},"\u002Fdocs\u002Fsettings","Settings Reference",{"title":765,"order":713},{"path":23,"title":24,"navigation":768},{"title":24,"order":691},{"path":704,"title":5,"navigation":770},{"title":5,"order":703},{"path":772,"title":773,"navigation":774},"\u002Fdocs\u002Fsettings\u002Fversions","Versions and release notes",{"title":775,"order":751},"Versions",{"path":777,"title":778,"navigation":779},"\u002Fdocs\u002Fsheets\u002Fformulas","Sheets formulas",{"title":778,"order":691},{"path":781,"title":782,"navigation":783},"\u002Fdocs\u002Fsheets","Sheets",{"title":782,"order":713},{"path":785,"title":786,"navigation":787},"\u002Fdocs\u002Fslides","Slides",{"title":786,"order":713},{"path":789,"title":790,"navigation":791},"\u002Fdocs\u002Fstart\u002Fconnecting","Connecting to Your Quark",{"title":792,"order":751},"Connecting",{"path":794,"title":795,"navigation":796},"\u002Fdocs\u002Fstart\u002Fgetting-started","Getting Started",{"title":795,"order":691},{"path":798,"title":799,"navigation":800},"\u002Fdocs\u002Fstart\u002Fhow-it-works","How Quark Works",{"title":801,"order":703},"How It Works",{"path":803,"title":804,"navigation":805},"\u002Fdocs\u002Fstart\u002Fwelcome","Welcome",{"title":804,"order":713},{"path":807,"title":808,"navigation":809},"\u002Fdocs\u002Fsystem","System",{"title":808,"order":713},{"path":811,"title":812,"navigation":813},"\u002Fdocs\u002Fsystem\u002Fstorage-and-backups","Storage and Backups",{"title":812,"order":691},{"path":815,"title":816,"navigation":817},"\u002Fdocs\u002Ftrash","Trash",{"title":816,"order":713},{"path":819,"title":820,"navigation":821},"\u002Fdocs\u002Fusers","Users and sharing",{"title":820,"order":713},{"path":212,"title":213,"navigation":823},{"title":213,"order":713},1795283135217]