Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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

SSH is the broad secure remote-access protocol; SFTP is a file-transfer service that runs through SSH. Use SFTP when you only need to upload, download, rename, or edit website files. Use SSH when the job requires a shell command, deployment script, log inspection, process management, permission changes, package installation, database tooling, or network forwarding. SFTP can be configured without granting an interactive shell, while an ordinary SSH account may provide much wider server access. The safest choice is therefore the narrowest service that can complete the task.

SFTP and SSH at a glance

Decision area SSH SFTP
Primary purpose Secure remote login, command execution, administration, and network forwarding Secure remote file transfer and file management
Typical interface Interactive shell, one-off command, script, or forwarded connection File-transfer client, batch file, or file-management commands
Website examples Run a build, inspect logs, restart a service, change ownership, run database commands Upload a theme, download a backup, create a directory, rename a release file
Possible access scope Broad server control, depending on account privileges and enabled forwarding Can be restricted to file operations and a directory or chroot
Encryption and authentication Provided by the SSH transport and the server’s authentication policy Uses the SSH transport and its authentication policy
Least-privilege default Use only when shell or server controls are required Prefer for file-only access

These are not competing encryption technologies. In a typical OpenSSH installation, SFTP is an SSH subsystem. Both can use public-key authentication, and both inherit the server’s decisions about accounts, ports, host keys, directory permissions, and forwarding.

What SSH is

SSH, or Secure Shell, is a protocol for secure remote login and other secure network services across an untrusted network. The protocol is defined in three conceptual layers:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Transport: authenticates the server, provides confidentiality and integrity, and can optionally compress traffic.
  • User authentication: proves the identity of the account using a password, public key, or another method permitted by the server.
  • Connection: carries one or more logical channels inside the encrypted connection.

The connection layer is why SSH is more than a remote command prompt. It supports interactive login sessions, one-off remote commands, forwarded TCP/IP connections, and forwarded X11 connections. Several channels can be multiplexed through one encrypted tunnel.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • 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: 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.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

OpenSSH is a widely used implementation suite rather than a separate protocol. Its client-side tools include ssh, scp, and sftp. Server-side components include sshd and sftp-server; ssh-agent holds private-key operations on the client. Utilities such as ssh-keygen, ssh-add, and ssh-keyscan support key creation, agent management, and host-key collection.

What an SSH session can do for a website

Once an account has the necessary authorization, an SSH session can run a deployment command, execute a build tool, read application and web-server logs, inspect disk space, restart a process, install a dependency, alter file ownership, or invoke a database client. Those capabilities are useful for administration but create a larger impact if credentials are stolen or the account is misconfigured.

What SFTP is

SFTP stands for SSH File Transfer Protocol. In OpenSSH, the sftp client asks sshd to start the sftp-server subsystem (or an equivalent internal implementation). The resulting service performs file operations over the already encrypted SSH transport.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An SFTP client looks somewhat like an FTP client, but it is not traditional FTP protected by a separate add-on. It is a distinct file-transfer protocol carried through SSH. Common operations include listing directories, changing directories, uploading and downloading files, creating directories, renaming items, deleting files, and changing selected attributes when the account is allowed to do so.

A server can configure an account for SFTP-only access. In that arrangement, the user still authenticates through SSH, but the server starts the file-transfer subsystem instead of a shell. The account may also be confined to a chroot directory so that its visible filesystem begins at the website’s designated root.

How SFTP and SSH relate on a server

  1. The client connects to the host and the SSH service port selected by the administrator.
  2. The SSH transport verifies the server’s host key and negotiates encryption and integrity protection.
  3. The user authenticates with a permitted method, such as a password or private key.
  4. An SSH connection channel is opened for the requested service.
  5. For SFTP, the server starts the SFTP subsystem. For ordinary SSH, it starts a shell or runs the requested command.

Because SFTP normally uses the SSH service, it commonly uses the same configured port. Many installations use port 22, but a hosting provider can select another port, and a firewall or policy can expose different services on different ports. Ask the provider for the hostname, port, username, authentication method, and starting directory rather than assuming any of these values.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • 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

Feature differences that matter for website management

Purpose and interface

SSH gives you a command channel. You can type commands interactively or send one command from your local machine. SFTP gives you a file-management channel. It is designed around paths and file operations rather than a general operating-system prompt.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Access scope

An SSH account can be limited, but an unrestricted account may expose the shell, local utilities, environment variables, and forwarding features. SFTP can be configured to expose only a website directory and file operations. This difference is an operational least-privilege recommendation, not a guarantee: account groups, filesystem permissions, chroot settings, forced commands, and hosting-provider policy determine the actual boundary.

Automation

Both tools support automation, but the unit of automation differs. An SFTP batch file can upload a known set of files or create directories. SSH can run a deployment script that checks out a release, builds assets, migrates a database, switches a symlink, and restarts an application. A file-transfer client cannot substitute for commands that must execute on the server.

Forwarding and tunnels

SSH can carry forwarded TCP/IP connections and, where enabled, X11 forwarding. These features are useful for administration and private service access, but they are unnecessary for a user who only needs to publish files. An SFTP-only account can have forwarding and terminal allocation disabled.

Permissions and ownership

SFTP can create or modify files only within the permissions granted to the account. It does not magically bypass Unix ownership or access-control rules. SSH is needed when you must run an authorized chmod, chown, service command, or hosting-specific administrative tool. Those commands may require a different account or elevated privileges.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Which should you use for common website tasks?

Uploading or replacing site files

Choose SFTP when the task is limited to copying files into the web root, replacing an image, uploading a plugin or theme archive, or downloading a backup. The narrower interface reduces the chance of accidentally running a destructive command and allows a provider to issue file-only credentials.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【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.

Editing configuration or application files

SFTP is suitable for transferring a carefully edited file, provided the account can write to that directory. Use a local editor and upload a validated copy rather than editing production files blindly. If the change also requires a service reload, cache purge, migration, or environment update, the complete task needs SSH or a provider’s separate control panel.

Deploying an application

Use SSH when deployment involves a script, dependency installation, asset compilation, database migration, release directory, symlink switch, queue restart, or health check. SFTP can deliver an already-built artifact, but it cannot execute the server-side steps unless another deployment mechanism performs them.

Reading logs and diagnosing failures

Use SSH for commands such as tail, less, service-status checks, disk inspection, and process queries. SFTP can download a log that the account is allowed to read, but it cannot filter a live stream or inspect running processes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Managing permissions, services, and packages

These are SSH tasks. File-transfer access alone cannot install a package, restart a web server, change ownership across a tree, or alter a system service. The provider may prohibit some of these actions even after SSH access is granted.

Using SFTP safely: a practical workflow

Gather the connection details

  • Hostname or IP address supplied by the host
  • SSH/SFTP port, including any custom value
  • Username and the permitted authentication method
  • Private-key path, if key authentication is used
  • Website directory or chroot starting point
  • Whether the account is read-only or can write, rename, and delete

Connect from a terminal

For a standard port, the command is:

sftp user@example.com

For a custom port, use an uppercase -P:

sftp -P 2222 user@example.com

To select a private key explicitly:

sftp -i ~/.ssh/site_ed25519 -P 2222 user@example.com

The first connection may display the server’s host-key fingerprint. Verify it through a trusted provider channel before accepting it. A changed fingerprint later can indicate a legitimate server replacement, but it can also signal interception; stop and verify instead of automatically accepting the new key.

Transfer and organize files

pwd                 # show the remote working directory
lpwd                # show the local working directory
ls                  # list remote files
cd public           # change remote directory
lcd ~/site-build    # change local directory
put index.html      # upload one file
put -r assets       # upload a directory recursively
get backup.zip      # download one file
mkdir releases      # create a remote directory
rename old.html new.html
rm old-backup.zip
bye

Use a temporary filename for a large or critical upload, verify its size, and rename it into place only after the transfer completes. This prevents visitors from receiving a partially uploaded file. Preserve a backup before replacing configuration or application files, and confirm that the destination path is the intended release directory.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【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.

Use batch mode for repeatable transfers

An SFTP batch file can contain commands such as cd, lcd, put, and rename. Run it with:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sftp -b deploy-files.txt -P 2222 user@example.com

Test the batch file against a staging directory first. A batch transfer does not provide the validation, migration, rollback, or service restart logic of a full deployment script.

Using SSH for server-side work

Start a shell or run one command

ssh user@example.com
ssh -p 2222 user@example.com 'tail -n 100 ~/logs/app.log'

The exact log path and available commands depend on the operating system and hosting plan. Treat copied commands as examples and confirm paths with the provider.

Typical administrative sequence

  1. Connect with the least-privileged account that can perform the task.
  2. Inspect the current release, disk space, service state, and recent logs.
  3. Run the deployment or maintenance command from a known directory.
  4. Validate the result with an HTTP check, application health command, or log review.
  5. Restart only the service that needs restarting, if policy permits it.
  6. Record the release or configuration change so it can be reversed.

Do not paste private keys, passwords, or untrusted scripts into a shell. Review commands that delete files, alter ownership, modify firewall rules, or restart production services before executing them.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Can you use SSH without giving shell access?

Yes. SSH is the transport and authentication framework; a server administrator decides which service an account may request. OpenSSH can force an account to run an internal SFTP service, set a ChrootDirectory, disable terminal allocation with PermitTTY no, and disable forwarding with settings such as AllowTcpForwarding no and X11Forwarding no. A forced command can also replace a normal shell with a narrowly defined operation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configuration syntax and available controls vary by OpenSSH version and hosting provider. A user should ask specifically for an “SFTP-only” account rather than assuming that an SSH username is restricted to website files. Conversely, an account that can log in with SFTP may still have broad write permissions inside its permitted tree.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【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.

Security practices for either method

Prefer keys where supported

Public-key authentication avoids sending a reusable password during each login and supports separate keys for separate people or systems. Protect the private key with a strong local passphrase, restrict its file permissions, and remove or rotate keys when a person, device, or deployment system no longer needs access.

Verify the host key

Host-key verification confirms that the client is connecting to the expected server. Record the verified fingerprint through a trusted channel. Do not suppress warnings simply to make an automated job continue.

Limit the account

  • Grant access only to the required website directory.
  • Use an SFTP-only service when shell commands are unnecessary.
  • Disable forwarding and terminal access for file-only accounts.
  • Use a chroot or equivalent confinement where the provider supports it.
  • Separate human administration keys from automated deployment keys.
  • Grant write permission only where publishing actually occurs.

Protect the transport and endpoint

SSH and SFTP encrypt traffic in transit, but encryption does not make a compromised endpoint safe. Keep the local computer, client software, and private keys protected. Use the provider’s required port and firewall rules, and avoid placing credentials in shell history, shared documents, or publicly readable automation files.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

SFTP, SSH, and SCP: an important version detail

OpenSSH 9.0 changed the scp command to use SFTP by default instead of the legacy scp/rcp protocol. Older scripts may rely on legacy wildcard expansion or other behavior that differs from SFTP. Review automated copy jobs when upgrading OpenSSH, test filename patterns containing spaces or special characters, and select an explicit compatibility option only when you understand the security and behavior implications.

Does SFTP use the same port as SSH?

Usually, yes: SFTP normally requests a subsystem from the SSH service listening on its configured port. The port is not inherent to the SFTP name, however. A provider can use a custom SSH port, proxy the service, or impose a separate access policy. If an SFTP client times out while an SSH client works, compare the hostname, port, firewall rules, and account restrictions rather than changing encryption settings at random.

Common problems and fixes

Symptom Likely cause What to check
Connection refused Wrong port, stopped SSH service, or firewall rejection Confirm the provider’s current port and whether your address is allowed
Permission denied during upload The account lacks write permission or the path is outside its chroot Start from the account’s reported directory and ask which folder is writable
Authentication fails Wrong username, key, passphrase, or authentication method Check the selected identity file and whether the public key is installed for that account
SFTP works but SSH shell fails The account is intentionally SFTP-only Request a separate administrative account if command access is legitimately required
SSH works but SFTP subsystem fails The subsystem is disabled, misconfigured, or unavailable on the plan Ask the provider to confirm its SFTP subsystem and account policy
Files upload but the site still shows old content Wrong document root, cache, permissions, or application release path Verify the remote path, ownership, cache behavior, and active release configuration
Host-key warning appears after a server change Legitimate replacement or possible interception Verify the new fingerprint through a trusted channel before updating the local record

What is safer for a WordPress or other website?

For routine file publishing, SFTP is generally the safer operational choice because an administrator can issue credentials that expose file operations without an interactive shell. That does not make every SFTP account harmless: a writable web root can still be abused to replace application code, and a user with permission to delete files can damage a site.

Use SSH for maintenance that genuinely needs server commands, such as examining live logs, running a documented deployment, changing ownership, or invoking server-side tooling. Keep that access separate from ordinary content editors when possible. For either method, use individual accounts or keys, verify the host, limit directory permissions, and revoke access when the work ends.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A decision checklist

  • Only moving website files? Choose SFTP.
  • Need a shell command, script, log stream, process action, package, migration, or permission change? Choose SSH.
  • Need file access but no shell? Ask for an SFTP-only account with chrooting and forwarding disabled.
  • Unsure which directory or port applies? Confirm the provider’s exact hostname, port, starting directory, and permissions.
  • Automating transfers? Use key authentication, verify host keys, test batch behavior, and add a rollback plan.
  • Changing from older SCP scripts? Test them against the SFTP behavior used by OpenSSH 9.0 and later.

The practical verdict

SFTP is the focused tool for website file access; SSH is the broader tool for remote administration. They normally share SSH’s encrypted transport and authentication, but they do not grant the same capabilities. Select SFTP for least-privilege publishing and SSH only when the work requires server-side commands or controls. Your hosting provider’s account configuration ultimately determines the port, directory boundary, authentication methods, shell availability, and forwarding rights.

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.