iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
For a file-transfer-only account, put the user in a dedicated group, match that group in sshd_config, set ChrootDirectory to a root-owned jail, and force internal-sftp. Disable forwarding features that the account does not need. A chroot alone changes the visible filesystem; it does not by itself prevent shell commands, arbitrary SSH commands, or forwarding.
The recommended design for SFTP-only access
A reliable pattern is to create a dedicated Unix group, place restricted accounts in it, and apply one Match Group block in the OpenSSH server configuration. The block below confines each matching account to a per-user directory and replaces every requested shell, command, or subsystem with the in-process SFTP server:
Match Group sftpusers
ChrootDirectory /srv/sftp/%u
ForceCommand internal-sftp
AllowTcpForwarding no
AllowAgentForwarding no
X11Forwarding no
PermitTunnel no
%u expands to the authenticated user name. Thus, user alice is jailed at /srv/sftp/alice. Keep this block after the global directives you want it to inherit. A Match section continues until another Match line or the end of the file, so a later global-looking directive may still be inside the restricted scope unless you deliberately end the section with an appropriate new match condition.
What each control actually does
ChrootDirectory: change the session’s apparent root
After authentication, sshd changes the session’s apparent root to the configured directory. Paths outside that root are no longer visible through normal filesystem operations. OpenSSH checks the ownership and mode of every component of the chroot path when the session starts. The jail and all of its parent components must be owned by root and must not be writable by the group or by others. If any component fails that check, sshd refuses to start the session.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
Chrooting is a filesystem boundary, not a complete SSH policy. Without an additional command restriction, an account can still receive a shell or an arbitrary command if the jail contains the software and device files needed to run it. Forwarding is a separate capability and must be controlled separately.
ForceCommand internal-sftp: make the account transfer-only
ForceCommand overrides the command supplied by the client for shell, command, and subsystem requests. With internal-sftp, an interactive shell request and a command such as ssh alice@host id do not run the requested program; they are handled by the in-process SFTP server instead. The OpenBSD sshd_config(5) manual describes this behavior as forcing an in-process SFTP server that needs no support files when used with ChrootDirectory.
Recommended Free Tools
This is why internal-sftp is normally simpler and safer than launching an external sftp-server binary inside the jail.
Forwarding restrictions
Disable capabilities that are outside the account’s purpose:
AllowTcpForwarding noblocks local and remote TCP forwarding.AllowAgentForwarding noprevents forwarding an SSH authentication agent.X11Forwarding noprevents X11 display forwarding.PermitTunnel noprevents tunnel devices.
These settings do not replace the chroot or ForceCommand; they close different channels. Test forwarding independently rather than assuming a filesystem jail has disabled it.
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
Plan the jail’s directory layout
The jail root must be an administrative boundary, so do not make it the user’s upload directory. Put writable data in a child directory and grant the account access only there. A common layout is:
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →/srv root:root, not writable by group/others
└── sftp root:root, not writable by group/others
└── alice root:root, not writable by group/others (jail)
└── upload alice:sftpusers, writable as required
After chrooting, sshd changes the working directory to the account’s home directory. Set the account’s home to a path that exists inside the jail. Setting the home to / starts the session at the jail root; setting it to /upload starts the session directly in the writable child. If you choose another path, create that directory inside the jail and apply the intended ownership and mode.
For example, the account may see /upload as its writable directory while the host sees the real path /srv/sftp/alice/upload. A request for /etc resolves inside the jail, not to the host’s /etc.
Build a dedicated account and jail
1. Create a group and account
Use your operating system’s account-management tools. A typical Linux sequence is:
sudo groupadd sftpusers
sudo useradd --create-home --home-dir / --gid sftpusers --shell /usr/sbin/nologin alice
sudo passwd alice
Option names differ between Unix implementations. The important properties are a dedicated group, a home path that will resolve inside the jail, and a non-interactive shell if local policy requires one. The forced command remains the decisive control for SFTP-only behavior.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
2. Create the path with safe ownership
sudo mkdir -p /srv/sftp/alice/upload
sudo chown root:root /srv /srv/sftp /srv/sftp/alice
sudo chmod 755 /srv /srv/sftp /srv/sftp/alice
sudo chown alice:sftpusers /srv/sftp/alice/upload
sudo chmod 700 /srv/sftp/alice/upload
The exact mode on the writable child depends on whether a group or another service must access it. The non-negotiable rule is that the chroot directory and every parent component are root-owned and not writable by group or others. Never solve an upload-permission problem by making the jail root writable; change the child directory instead.
Install the Match policy
Edit the server’s OpenSSH configuration, commonly /etc/ssh/sshd_config, and add the restricted block after the global settings:
Match Group sftpusers
ChrootDirectory /srv/sftp/%u
ForceCommand internal-sftp
AllowTcpForwarding no
AllowAgentForwarding no
X11Forwarding no
PermitTunnel no
Do not put unrelated global directives below this block unless you understand their match scope. If the file already contains other Match sections, inspect their order and conditions carefully. A user may match the first applicable value for a setting, so a broad group rule placed too early can produce a policy different from the one you intended.
Validate before reloading sshd
- Check the path hierarchy and ownership on the host. Every component of
/srv/sftp/alicemust satisfy the root-ownership and non-writability requirement. - Run the platform’s sshd configuration test mode (on many OpenSSH installations,
sudo sshd -t). Correct every syntax or permission error before applying the change. - Keep an existing administrative SSH session open. Reload the daemon from that session only after the test succeeds, using your operating system’s service manager.
- Open a second client session and perform the functional tests below before closing the original administrative session.
A syntax check proves that the file parses; it does not prove that the account lands in the intended directory, that uploads work, or that forwarding is blocked. Those behaviors require login tests.
Test the account as an attacker would
SFTP login and path checks
- Connect with an SFTP client as
alice. - Run
pwdand confirm that the reported path is the intended in-jail location. - Run
lsand verify that only the directories intended for this account are visible. - Upload a small file into the writable child and download it again.
- Attempt to change to a path such as
/and inspect the listing. It should show the jail’s root, not the host filesystem. - Attempt to reach a path outside the jail with relative components such as
../../etc. The request must not expose the host’s files.
Shell and arbitrary-command checks
Try both an ordinary shell request and an explicit command:
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
ssh alice@host
ssh alice@host id
With ForceCommand internal-sftp, neither request should provide a shell or execute id. The client may receive an SFTP protocol response, an immediate termination, or another implementation-specific failure rather than a conventional “permission denied” message; the security requirement is that no arbitrary command runs.
Forwarding checks
Attempt the forwarding modes relevant to your environment, including local or remote TCP forwarding, agent forwarding, X11 forwarding, and tunnel requests. They should fail under the four explicit restrictions. Review sshd and authentication logs while testing so you can distinguish a policy rejection from a client-side configuration error.
Why internal-sftp is usually the right choice
| Design | What must exist in the jail | Operational consequence |
|---|---|---|
In-process internal-sftp |
No SFTP server binary or supporting libraries | Smallest jail and simplest setup; intended for ChrootDirectory use |
External sftp-server |
The server program plus its libraries and any required runtime files | More files to maintain and more opportunities for ownership or dependency mistakes |
| Interactive shell in a chroot | A shell, commands, libraries, basic /dev nodes such as null, zero, standard streams, and tty devices |
Substantially larger and more complex environment |
On some operating systems, logging an in-process SFTP session additionally requires a /dev/log endpoint inside the chroot. If SFTP logging is enabled and records are missing, check the platform’s required logging socket and provide it inside the jail according to that platform’s service configuration.
Free tools Windows power users keep installed
One-click scans. No signup required.
Read-only and writable variants
Read-only account
Keep the jail root-owned and make every visible child directory non-writable by the account. This permits listing and downloads while preventing uploads and modifications. Verify the result with an attempted upload rather than relying on mode inspection alone, because inherited ACLs or other filesystem controls can change the effective result.
Upload-only or drop-box account
Give the account write access to a dedicated child such as /upload, but do not grant write access to the jail root or to unrelated children. Decide separately whether the account may list, read, rename, or delete files; ordinary Unix ownership, modes, and ACLs determine those details. The chroot controls where the account can see, not which operations it may perform within an allowed directory.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
When an interactive shell is genuinely required
An interactive shell is a different design, not a small variation of SFTP-only access. The chroot must contain the shell executable, every command users are expected to run, their shared libraries, configuration files, and device nodes for null, zero, standard streams, and terminals. Depending on the operating system and logging setup, it may also need a logging socket such as /dev/log.
Because each additional executable and device expands the maintenance and attack surface, use an interactive chroot only when the requirement is explicit. For a file-transfer account, internal-sftp avoids these support files and removes the need to maintain a miniature operating-system tree.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Troubleshoot common failures
“Bad ownership or modes for chroot directory”
Inspect every component, not just the final directory. A parent such as /srv or /srv/sftp that is group-writable can invalidate an otherwise correct jail. Set those components back to root ownership and remove group/other write permission. Keep user write access on a child directory.
The user lands in the wrong directory
Remember that the home directory is interpreted after chrooting. If the account home is /upload, the directory must exist as /srv/sftp/alice/upload on the host. If the home points to a host path that is not present inside the jail, the session may fail or start somewhere unexpected. Choose a clear in-jail home and create it before testing.
Uploads fail while listing works
Check the writable child directory’s owner, group, mode, and any ACLs. Do not loosen the jail root. Grant write permission only to the intended child and test the exact operation the account needs, such as creating, replacing, renaming, or deleting a file.
A shell or command appears to run
Confirm that the account is actually in the group named by the Match condition, that the block is being read in the expected order, and that ForceCommand internal-sftp is spelled and scoped correctly. Re-run the daemon’s syntax test, reload sshd, and test both ssh user@host and ssh user@host command from a new connection.
SFTP logging is absent
An in-process server may still need the operating system’s logging endpoint inside the jail. Check the platform’s OpenSSH logging requirements and make the required /dev/log endpoint available without making the jail root writable.
Forwarding still works
Check each forwarding setting independently. A chroot does not disable forwarding, and disabling TCP forwarding does not automatically disable agent, X11, or tunnel forwarding. Confirm that the account matches the intended Match block and test from a fresh session after reloading sshd.
Quick Recap
Decision guide: choose the narrowest policy that fits
| Requirement | Recommended policy | Trade-off |
|---|---|---|
| Transfer files and nothing else | Dedicated group, ChrootDirectory, ForceCommand internal-sftp, and all unneeded forwarding disabled |
Small jail, no shell or arbitrary SSH command |
| Download only | SFTP-only policy with non-writable child directories | Users cannot upload or modify files |
| Upload to one drop directory | SFTP-only policy with a writable child and a root-owned jail | Permissions inside the child still require careful design |
| Run approved shell tools | Interactive chroot with shell, libraries, devices, and logging support | More files, maintenance, and exposure |
| Permit a specific forwarding capability | Enable only that capability in the matching policy and test it separately | Broader connectivity than a pure file-transfer account |
Deployment checklist
- Use a dedicated account or group rather than applying the jail broadly to administrators.
- Make the jail and every parent component root-owned and non-writable by group or others.
- Put writable content below the jail root.
- Set the account home to a directory that exists inside the jail.
- Place the
Matchblock so its scope and ordering are unambiguous. - Use
ForceCommand internal-sftpfor SFTP-only access. - Disable TCP, agent, X11, and tunnel forwarding unless a documented requirement says otherwise.
- Run the daemon’s configuration test before reloading and keep an administrative session open.
- Test SFTP paths, uploads and downloads, shell requests, explicit commands, forwarding, and logs.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

