<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nate</title>
    <description>The latest articles on DEV Community by Nate (@__3381495fd2b).</description>
    <link>https://dev.to/__3381495fd2b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4107233%2Ffc390186-a52a-4f6d-93ac-89d126ebf424.png</url>
      <title>DEV Community: Nate</title>
      <link>https://dev.to/__3381495fd2b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/__3381495fd2b"/>
    <language>en</language>
    <item>
      <title>Debugging SSH `Permission denied (publickey)` Without Guesswork</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:37:47 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/debugging-ssh-permission-denied-publickey-without-guesswork-812</link>
      <guid>https://dev.to/__3381495fd2b/debugging-ssh-permission-denied-publickey-without-guesswork-812</guid>
      <description>&lt;p&gt;An SSH &lt;code&gt;Permission denied (publickey)&lt;/code&gt; error means the connection reached authentication, but the login did not complete with an accepted key. It’s different from a timeout or a refused connection—and it doesn’t necessarily mean your key is missing.&lt;/p&gt;

&lt;p&gt;The fastest way to narrow it down is to find out which account and key your client actually used, then check whether the server recognizes that key for that account.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the client’s authentication trace
&lt;/h2&gt;

&lt;p&gt;Run the failing connection with verbose output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -vv user@host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;user@host&lt;/code&gt; with the account and host you’re trying to reach. Focus on the authentication lines rather than the entire connection trace.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Offering public key&lt;/code&gt; means the client proposed that key. It does &lt;strong&gt;not&lt;/strong&gt; mean the server accepted it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Server accepts key&lt;/code&gt; means the server recognized the public key, but authentication can still fail afterward.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Authenticated to ... using "publickey"&lt;/code&gt; confirms that public-key authentication succeeded.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the trace doesn’t show the key you expected, check the client configuration before changing anything on the server. If the expected key is offered but rejected, check the account, the server’s authorized keys, and the server-side logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify the account, host, and identity
&lt;/h2&gt;

&lt;p&gt;A host alias can hide the username, hostname, port, or key selected by SSH. Print the effective configuration without attempting a login:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -G myserver &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'^(hostname|user|port|identityfile|identitiesonly|proxyjump) '&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows PowerShell, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;ssh&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;G&lt;/span&gt; &lt;span class="n"&gt;myserver&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="s1"&gt;'^(hostname|user|port|identityfile|identitiesonly|proxyjump) '&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm that the effective hostname and username are correct. A key authorized for &lt;code&gt;deploy&lt;/code&gt; will not automatically work when you connect as &lt;code&gt;root&lt;/code&gt;. Cloud image usernames also vary, so check your provider or image documentation rather than guessing.&lt;/p&gt;

&lt;p&gt;To test one specific identity and avoid offering other keys from your agent, try:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -o &lt;span class="nv"&gt;IdentitiesOnly&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;yes -i ~/.ssh/id_ed25519 user@host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the private-key file, without the &lt;code&gt;.pub&lt;/code&gt; suffix. On Windows PowerShell, a typical path is &lt;code&gt;"$HOME\.ssh\id_ed25519"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If the explicit command works, set the identity for that host in &lt;code&gt;~/.ssh/config&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host myserver
    HostName server.example.com
    User deploy
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This keeps the fix scoped to the host instead of changing key selection globally.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check that the server has the matching public key
&lt;/h2&gt;

&lt;p&gt;The server checks keys for the account you requested. A valid private key can still fail if its public half is missing from that account’s authorized keys—or if the server reads a different authorized-keys file than you expect.&lt;/p&gt;

&lt;p&gt;On the client, print the fingerprint of the public key paired with your private key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen -lf ~/.ssh/id_ed25519.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the server, use an existing administrator session or provider console to check the target account’s authorized keys:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ssh-keygen -lf /home/deploy/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;deploy&lt;/code&gt; with the actual account. Compare the SHA256 fingerprints; &lt;code&gt;authorized_keys&lt;/code&gt; can contain more than one key. These are &lt;strong&gt;user key&lt;/strong&gt; fingerprints, not the server’s host-key fingerprint shown when you first connect.&lt;/p&gt;

&lt;p&gt;If the key is missing and you have a working login, &lt;code&gt;ssh-copy-id&lt;/code&gt; can install its public half:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-copy-id -i ~/.ssh/id_ed25519.pub deploy@host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If no SSH login works, that command cannot bypass authentication. Use an authorized recovery console or administrator session to append the public key to the correct file. Never copy your private key to the server or overwrite an existing &lt;code&gt;authorized_keys&lt;/code&gt; file just to add one key.&lt;/p&gt;

&lt;p&gt;Windows OpenSSH servers have a path difference worth checking: when the login account is in the Administrators group and the default matching rule applies, authorized keys are read from &lt;code&gt;C:\ProgramData\ssh\administrators_authorized_keys&lt;/code&gt; rather than the user’s usual &lt;code&gt;.ssh&lt;/code&gt; directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect server-side permissions and logs
&lt;/h2&gt;

&lt;p&gt;On a Linux server, check the target account’s home directory and SSH files:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;namei -l /home/deploy/.ssh/authorized_keys
ls -ld /home/deploy /home/deploy/.ssh /home/deploy/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Typical secure permissions are &lt;code&gt;700&lt;/code&gt; on &lt;code&gt;.ssh&lt;/code&gt; and &lt;code&gt;600&lt;/code&gt; on &lt;code&gt;authorized_keys&lt;/code&gt;. The home directory must not be writable by unrelated users. With the default &lt;code&gt;StrictModes yes&lt;/code&gt;, OpenSSH checks ownership and permissions before trusting these files.&lt;/p&gt;

&lt;p&gt;Make changes only after confirming the account and paths. For example, these commands assume &lt;code&gt;/home/deploy&lt;/code&gt; is the correct home directory and that the account’s primary group is also &lt;code&gt;deploy&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo chmod go-w /home/deploy
sudo chmod 700 /home/deploy/.ssh
sudo chmod 600 /home/deploy/.ssh/authorized_keys
sudo chown deploy:deploy /home/deploy/.ssh /home/deploy/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the account’s actual group first with &lt;code&gt;id deploy&lt;/code&gt;. On a Linux or macOS &lt;strong&gt;client&lt;/strong&gt;, a private key typically needs &lt;code&gt;chmod 600 ~/.ssh/id_ed25519&lt;/code&gt;. Windows uses NTFS ACLs rather than Unix &lt;code&gt;chmod&lt;/code&gt;; inspect them with &lt;code&gt;icacls&lt;/code&gt; instead of applying Linux permission commands.&lt;/p&gt;

&lt;p&gt;When client output doesn’t reveal why a key was rejected, server logs can help. On Ubuntu or Debian with systemd:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo journalctl -u ssh --since &lt;span class="s1"&gt;'15 minutes ago'&lt;/span&gt; --no-pager &lt;span class="o"&gt;|&lt;/span&gt; tail -n 80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The service may be called &lt;code&gt;sshd&lt;/code&gt; on Fedora/RHEL-style systems. Look for messages about bad ownership or modes, a disallowed account, an unreadable authorized-keys file, or a signature-algorithm mismatch. If you need to change server configuration, keep a working administrator session open and test a separate login before closing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Avoid risky shortcuts
&lt;/h2&gt;

&lt;p&gt;Don’t disable &lt;code&gt;StrictModes&lt;/code&gt;, use &lt;code&gt;chmod 777&lt;/code&gt;, or enable password login globally just to make the error disappear. Those changes can weaken access controls or create a larger problem than the one you’re debugging.&lt;/p&gt;

&lt;p&gt;An RSA key is not automatically outdated, either. Compatibility problems can involve the older &lt;code&gt;ssh-rsa&lt;/code&gt; signature based on SHA-1, which is separate from whether the key itself is RSA.&lt;/p&gt;

&lt;p&gt;If SSH is not installed or listening on an Ubuntu server, that’s a connection setup problem rather than a public-key rejection; &lt;a href="https://shadeterm.com/blog/enable-ssh-on-ubuntu/" rel="noopener noreferrer"&gt;check how to enable SSH on Ubuntu&lt;/a&gt; before troubleshooting authentication. If you’re connecting from Windows and suspect the client or its key handling, &lt;a href="https://shadeterm.com/blog/best-ssh-clients-for-windows/" rel="noopener noreferrer"&gt;compare Windows SSH client options&lt;/a&gt;—but first verify the same connection from a regular terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick order of operations
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;ssh -vv&lt;/code&gt; and identify the key offered.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;ssh -G&lt;/code&gt; to confirm the effective host, username, and identity.&lt;/li&gt;
&lt;li&gt;Test the intended private key explicitly with &lt;code&gt;IdentitiesOnly=yes&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Compare its public-key fingerprint with the target account’s authorized keys.&lt;/li&gt;
&lt;li&gt;Check server-side permissions and logs if the key is still rejected.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the key is offered but not accepted, focus on the server’s account, key file, access rules, and logs. If the server accepts it but login still fails, look at signing, passphrase handling, or requirements for an additional authentication method. Keep any working session open while testing a fix.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://shadeterm.com/blog/ssh-permission-denied-publickey/" rel="noopener noreferrer"&gt;ShadeTerm blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://shadeterm.com/" rel="noopener noreferrer"&gt;ShadeTerm&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Enable SSH on Ubuntu: Install, Verify, and Connect Safely</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:37:27 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/enable-ssh-on-ubuntu-install-verify-and-connect-safely-4lp1</link>
      <guid>https://dev.to/__3381495fd2b/enable-ssh-on-ubuntu-install-verify-and-connect-safely-4lp1</guid>
      <description>&lt;p&gt;Installing an SSH client lets you connect &lt;em&gt;from&lt;/em&gt; your Ubuntu machine. To accept incoming connections, Ubuntu needs the OpenSSH &lt;strong&gt;server&lt;/strong&gt; package. And installing that package is only the first check: you still need to verify that SSH is listening, that the network allows access, and that a login works from another machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check what is already installed
&lt;/h2&gt;

&lt;p&gt;The right starting point depends on how Ubuntu was set up. Ubuntu Desktop often does not include the SSH server by default. Ubuntu Server may have it if you selected SSH during installation, while cloud images often come with SSH configured by the provider.&lt;/p&gt;

&lt;p&gt;Check the package before installing it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dpkg -s openssh-server &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'Package:|Status:|Version:'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the output includes &lt;code&gt;Status: install ok installed&lt;/code&gt;, the package is present. If it is missing, install it from Ubuntu’s repositories:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt update
sudo apt install openssh-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;ssh&lt;/code&gt; command is the client; &lt;code&gt;openssh-server&lt;/code&gt; provides the daemon that accepts incoming connections. Having the client installed does not mean the machine is accepting SSH connections.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify the listener, not just the service status
&lt;/h2&gt;

&lt;p&gt;Ubuntu installations can use systemd socket activation. On newer installations, including typical Ubuntu 24.04 and 26.04 setups, &lt;code&gt;ssh.socket&lt;/code&gt; can listen for connections and start &lt;code&gt;ssh.service&lt;/code&gt; when a client connects. That means a service status by itself may not tell the whole story.&lt;/p&gt;

&lt;p&gt;Check whether TCP port 22 is listening:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ss -ltnp &lt;span class="s1"&gt;'sport = :22'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for a &lt;code&gt;LISTEN&lt;/code&gt; entry. The process shown may be &lt;code&gt;systemd&lt;/code&gt; or &lt;code&gt;sshd&lt;/code&gt;, depending on how SSH is started. The address matters too: &lt;code&gt;127.0.0.1:22&lt;/code&gt; accepts connections only through loopback, while a listener on a network interface can accept connections addressed to that interface. A listener alone does not prove a firewall or network will allow remote access.&lt;/p&gt;

&lt;p&gt;If you need to understand the startup mode, inspect both units:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo systemctl status ssh.socket --no-pager
sudo systemctl status ssh.service --no-pager
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example, &lt;code&gt;ssh.service&lt;/code&gt; being inactive does not necessarily mean SSH is unavailable if &lt;code&gt;ssh.socket&lt;/code&gt; is listening. If port 22 is not listening, check the units and logs before changing them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo sshd -t
sudo journalctl -u ssh.socket -u ssh.service -b -n 40 --no-pager
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On a standard socket-activated installation where the socket has been disabled, &lt;code&gt;sudo systemctl enable --now ssh.socket&lt;/code&gt; may restore it. Customized systems and older service-based setups can differ, so check the current configuration rather than enabling units blindly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the firewall before testing remotely
&lt;/h2&gt;

&lt;p&gt;UFW is optional. See whether it is active:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ufw status verbose
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If UFW is inactive, its rules are not blocking SSH. You do not need to enable UFW just to install OpenSSH. If UFW is active and SSH uses the default port, inspect and allow the OpenSSH profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ufw app info OpenSSH
sudo ufw allow OpenSSH
sudo ufw status numbered
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The standard profile normally allows TCP port 22. If SSH is configured to use a different port, allow that port instead. For example, for port 2222:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ufw allow 2222/tcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A VPS may also have a provider firewall or security group, separate from UFW. And if you are managing a remote machine, do not enable a default-deny firewall or reset its rules without first confirming that SSH is allowed and that you have a recovery route. Otherwise, you can lock yourself out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect from another computer
&lt;/h2&gt;

&lt;p&gt;On the Ubuntu machine, find an address reachable from the client and the account name to use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;hostname -I
whoami
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From a different computer, connect with its OpenSSH client. PowerShell on Windows and terminals on macOS and Linux can use the &lt;code&gt;ssh&lt;/code&gt; command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh username@SERVER_IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;username&lt;/code&gt; with the Ubuntu account name and &lt;code&gt;SERVER_IP&lt;/code&gt; with the server’s reachable address. For a custom port, specify it with &lt;code&gt;-p&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -p 2222 username@SERVER_IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the first connection, SSH may ask you to trust the server’s host key. Confirm its fingerprint using a trusted source before accepting it. You can display the server’s ED25519 host-key fingerprint on Ubuntu with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After connecting, commands such as &lt;code&gt;whoami&lt;/code&gt; and &lt;code&gt;hostname&lt;/code&gt; help confirm which account and machine you reached. A successful login from the client is the end-to-end test; seeing port 22 in &lt;code&gt;ss&lt;/code&gt; only confirms a local listener. A connection to &lt;code&gt;127.0.0.1&lt;/code&gt; from the Windows host to WSL, for instance, does not prove that another computer or the public Internet can reach that instance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diagnose the failure you actually see
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connection refused:&lt;/strong&gt; Check the target address and port, the listener, and the SSH socket or service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connection timed out:&lt;/strong&gt; Check UFW, provider firewall rules, routing, and whether you used a reachable address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission denied (publickey):&lt;/strong&gt; The server was reached, but authentication failed. Check the account and key configuration; this &lt;a href="https://shadeterm.com/blog/ssh-permission-denied-publickey/" rel="noopener noreferrer"&gt;guide to fixing SSH public-key permission errors&lt;/a&gt; covers that specific case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Works locally, not from another machine:&lt;/strong&gt; Check the listener’s address and the network path, including any cloud firewall or router.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a more detailed client-side view of where a connection fails, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -v username@SERVER_IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you connect from Windows and are comparing available SSH tools, this overview of &lt;a href="https://shadeterm.com/blog/best-ssh-clients-for-windows/" rel="noopener noreferrer"&gt;SSH clients for Windows&lt;/a&gt; may help you choose a client for your workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep remote access changes reversible
&lt;/h2&gt;

&lt;p&gt;Installing SSH does not mean it needs to be exposed to every network. Keep Ubuntu security updates current and use an appropriate account and authentication setup. If you change authentication settings or the SSH port, keep an existing session open while you test a new connection. Confirm that the new port is allowed through both the host and provider firewalls before relying on it.&lt;/p&gt;

&lt;p&gt;The practical sequence is: check whether &lt;code&gt;openssh-server&lt;/code&gt; is installed, install it if needed, verify the actual listener, inspect firewall rules, and test a login from the client that needs access.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://shadeterm.com/blog/enable-ssh-on-ubuntu/" rel="noopener noreferrer"&gt;ShadeTerm blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://shadeterm.com/" rel="noopener noreferrer"&gt;ShadeTerm&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Choosing an SSH Client on Windows: Start With the Job</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:37:06 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/choosing-an-ssh-client-on-windows-start-with-the-job-53i5</link>
      <guid>https://dev.to/__3381495fd2b/choosing-an-ssh-client-on-windows-start-with-the-job-53i5</guid>
      <description>&lt;p&gt;A Windows SSH client can mean a terminal, a graphical file-transfer tool, or a remote development environment. Those are related workflows, but they are not interchangeable. Picking the right one starts with deciding what you need to do after you connect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the built-in option
&lt;/h2&gt;

&lt;p&gt;For a shell session, Windows Terminal and OpenSSH are a solid free baseline. They are separate pieces: Windows Terminal provides tabs and panes, while OpenSSH provides the &lt;code&gt;ssh&lt;/code&gt; command that connects to a server. You can run that command from PowerShell or Windows Terminal.&lt;/p&gt;

&lt;p&gt;Check whether the client is available with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;ssh&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;V&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then connect using your server's username and address:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;ssh&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;@&lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you connect to an Ubuntu server you manage, first make sure its SSH service is enabled and reachable; this &lt;a href="https://shadeterm.com/blog/enable-ssh-on-ubuntu/" rel="noopener noreferrer"&gt;Ubuntu SSH setup guide&lt;/a&gt; covers the server-side checks. Once connected, OpenSSH is often all you need for commands, scripts, or occasional administration.&lt;/p&gt;

&lt;p&gt;The trade-off is that a terminal is not a graphical SFTP browser. If you regularly upload, rename, or synchronize files, you'll likely want a separate transfer tool or a client that includes one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Match the tool to the work
&lt;/h2&gt;

&lt;h3&gt;
  
  
  You mainly need a shell
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Windows Terminal + OpenSSH&lt;/strong&gt; is a good starting point if you are comfortable with commands and want to use the standard SSH client. &lt;strong&gt;PuTTY&lt;/strong&gt; is another lightweight option, particularly if you prefer saved session profiles or need serial access. PuTTY's main terminal does not include a graphical SFTP manager; PSFTP and PSCP are separate command-line utilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tabby&lt;/strong&gt; is worth considering if you want an open-source terminal with SSH profiles, tabs, and split panes. Its focus is terminal customization, not a complete server-management dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  You frequently move files
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Bitvise&lt;/strong&gt; combines an SSH terminal with graphical SFTP and forwarding controls in a Windows-focused application. &lt;strong&gt;WinSCP&lt;/strong&gt; is a stronger fit when file transfers, synchronization, and transfer automation are the main job. It is not a full terminal replacement, though it can hand off interactive shell access to PuTTY.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MobaXterm&lt;/strong&gt; combines SSH and an SFTP sidebar with other remote-access tools, including RDP, VNC, and X11. That breadth can help if your work spans several protocols. Check its edition limits and licensing terms before using it in an organization.&lt;/p&gt;

&lt;h3&gt;
  
  
  You work on remote code
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;VS Code Remote - SSH&lt;/strong&gt; is a development workflow rather than a general-purpose SSH client. It connects through an OpenSSH-compatible client and uses VS Code Server on the remote host so you can edit and debug code there. That is useful for remote projects, but unnecessary if you only need a shell or a file-transfer utility.&lt;/p&gt;

&lt;h3&gt;
  
  
  You connect from multiple devices
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Termius&lt;/strong&gt; focuses on host management across desktop and mobile. Its free Starter tier includes a local vault, SSH, SFTP, and port forwarding; cloud vault synchronization is paid. That distinction matters if your goal is simply to connect from one Windows machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare the workflow, not the feature count
&lt;/h2&gt;

&lt;p&gt;Before installing another client, write down the tasks you repeat most often:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open a shell on one or more servers&lt;/li&gt;
&lt;li&gt;Transfer or synchronize files&lt;/li&gt;
&lt;li&gt;Edit and debug a remote project&lt;/li&gt;
&lt;li&gt;Use forwarding, jump hosts, or serial connections&lt;/li&gt;
&lt;li&gt;Move between computers or mobile devices&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then check whether each candidate supports those tasks on Windows, and whether its free edition or license suits your use. A file-transfer specialist can be better than an all-in-one application when transfers are the main task. Likewise, a terminal-first client may be enough if you rarely touch remote files.&lt;/p&gt;

&lt;p&gt;Security details deserve a separate check. Confirm that the client lets you verify a server's host key and understand where credentials are stored and whether they sync. Also check the forwarding and key-management options you actually need; avoid enabling forwarding you do not use.&lt;/p&gt;

&lt;h2&gt;
  
  
  When a connection fails
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;Permission denied (publickey)&lt;/code&gt; error is about authentication, not which terminal window you chose. Check that you are connecting with the expected account and key, then investigate the server's accepted keys and permissions. This &lt;a href="https://shadeterm.com/blog/ssh-permission-denied-publickey/" rel="noopener noreferrer"&gt;public-key troubleshooting guide&lt;/a&gt; walks through the common diagnostic steps.&lt;/p&gt;

&lt;p&gt;If the connection works but your workflow feels awkward, identify the missing part: graphical SFTP, saved sessions, remote editing, or multi-protocol access. Switching clients is most useful when it solves that specific problem—not simply because another app has a longer feature list.&lt;/p&gt;

&lt;p&gt;For occasional shell access, start with Windows OpenSSH or PuTTY. Add Bitvise or WinSCP when graphical file work becomes important, MobaXterm when you need a broader remote-access toolbox, or VS Code Remote - SSH when the task is developing on a remote machine.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://shadeterm.com/blog/best-ssh-clients-for-windows/" rel="noopener noreferrer"&gt;ShadeTerm blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://shadeterm.com/" rel="noopener noreferrer"&gt;ShadeTerm&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Replacing PuTTY? Start With the Workflow You Want to Fix</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:36:41 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/replacing-putty-start-with-the-workflow-you-want-to-fix-lne</link>
      <guid>https://dev.to/__3381495fd2b/replacing-putty-start-with-the-workflow-you-want-to-fix-lne</guid>
      <description>&lt;p&gt;PuTTY is still a capable SSH client. The reason to replace it usually isn’t that it stopped working; it’s that your workflow now needs something PuTTY doesn’t provide directly, like tabs, a graphical SFTP browser, or support for other remote-access protocols.&lt;/p&gt;

&lt;p&gt;Before installing a new client, identify the friction. That makes it much easier to choose a tool—and avoid migrating a working setup just to discover the replacement doesn’t solve your actual problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Match the tool to the missing feature
&lt;/h2&gt;

&lt;p&gt;A few common cases cover most replacement decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You want tabs or split panes:&lt;/strong&gt; Tabby is an open-source, cross-platform terminal with SSH profiles, tabs, and panes. SuperPuTTY is another option if you want to keep using the PuTTY executable and organize its sessions in a tabbed interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want graphical file transfers:&lt;/strong&gt; Bitvise combines Windows SSH access with an SFTP file-transfer window. Or keep PuTTY and add a dedicated file-transfer client such as WinSCP; replacing your SSH client isn’t necessary just because you need a file browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want a command-line workflow:&lt;/strong&gt; Windows Terminal provides tabs and panes, while OpenSSH provides the &lt;code&gt;ssh&lt;/code&gt;, &lt;code&gt;scp&lt;/code&gt;, and &lt;code&gt;sftp&lt;/code&gt; commands. They’re separate components, but work well together if you’re comfortable managing hosts in a config file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need more than SSH:&lt;/strong&gt; MobaXterm includes an X server and supports remote desktop protocols such as RDP and VNC, alongside SSH. That broader toolkit is useful when those protocols are part of your work, but can be more than you need for a shell connection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You connect from multiple device types:&lt;/strong&gt; Termius has desktop and mobile applications. Its cross-device synchronization is associated with a paid plan, so check whether that capability matters to you before choosing it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a broader comparison of Windows tools, this &lt;a href="https://shadeterm.com/blog/best-ssh-clients-for-windows/" rel="noopener noreferrer"&gt;overview of SSH clients for Windows&lt;/a&gt; can help you compare workflow and platform differences. If you’re considering MobaXterm for its extra protocols, this &lt;a href="https://shadeterm.com/blog/mobaxterm-alternative/" rel="noopener noreferrer"&gt;comparison of MobaXterm alternatives&lt;/a&gt; is relevant when you want to weigh those trade-offs against other options.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tabs are not persistent sessions
&lt;/h2&gt;

&lt;p&gt;A tabbed interface keeps local terminal windows organized. It does not, by itself, preserve a remote shell after your network connection drops. If you need interactive work to continue on the server while you disconnect, use a server-side multiplexer such as &lt;code&gt;tmux&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That distinction matters when evaluating clients: a polished tab bar changes how you manage windows, not whether the remote process survives a disconnection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migrate one connection at a time
&lt;/h2&gt;

&lt;p&gt;Don’t delete PuTTY or wipe its saved sessions before verifying the new setup. Start with one noncritical server, write down the settings you need, and test the replacement alongside your existing client.&lt;/p&gt;

&lt;p&gt;Record the hostname, username, port, any proxy configuration, private-key path, and SSH tunnels. On Windows, PuTTY’s usual session settings are stored under:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Portable variants may store settings differently. Keep a backup of your private keys, and don’t upload them to an online conversion site. PuTTY’s &lt;code&gt;.ppk&lt;/code&gt; files are private keys, not saved-session profiles. Some clients accept them directly; if yours requires an OpenSSH-compatible key, PuTTYgen can export one.&lt;/p&gt;

&lt;p&gt;With Windows OpenSSH, a host entry in &lt;code&gt;%USERPROFILE%\.ssh\config&lt;/code&gt; could look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host production
    HostName prod.example.com
    User deploy
    Port 2222
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the example host, username, port, and key path with your own values. You can then connect using the alias:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To inspect the effective SSH configuration without connecting, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -G production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A GUI client may not import PuTTY’s saved sessions automatically, so check its documented import process or create the profile manually. Recreate tunnels deliberately rather than assuming they carried over.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat a new host-key prompt as a security check
&lt;/h2&gt;

&lt;p&gt;A new client may not have the host key you previously accepted in PuTTY. Don’t dismiss an unknown or changed host key just to get connected. Verify the server’s fingerprint through a trusted channel before accepting it.&lt;/p&gt;

&lt;p&gt;Also download client software from its publisher, keep both a wrapper and any underlying PuTTY executable updated, and protect private-key files with appropriate access controls. A modern interface or open-source license alone doesn’t prove that a client is more secure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep PuTTY if it already fits
&lt;/h2&gt;

&lt;p&gt;PuTTY includes saved sessions, SSH tunneling, and companion tools such as PuTTYgen, Pageant, PSCP, and PSFTP. If you only need a straightforward SSH connection, a replacement may add complexity without making the task easier.&lt;/p&gt;

&lt;p&gt;A useful rule: change clients when you can name the workflow problem you’re fixing. For tabs, choose a terminal manager. For graphical transfers, add an SFTP client or choose one that integrates file browsing. For command-line work, try OpenSSH. And if the current setup meets your needs, keeping it updated is a perfectly reasonable choice.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://shadeterm.com/blog/best-putty-alternatives/" rel="noopener noreferrer"&gt;ShadeTerm blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://shadeterm.com/" rel="noopener noreferrer"&gt;ShadeTerm&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Replacing MobaXterm? Start by Mapping the Features You Actually Use</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:36:09 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/replacing-mobaxterm-start-by-mapping-the-features-you-actually-use-41df</link>
      <guid>https://dev.to/__3381495fd2b/replacing-mobaxterm-start-by-mapping-the-features-you-actually-use-41df</guid>
      <description>&lt;p&gt;MobaXterm is easy to replace if you only use its SSH terminal. It is much harder to replace if you also rely on its SFTP browser, Windows X server, RDP, or VNC. Those are different jobs bundled into one application, and many alternatives cover only one or two of them.&lt;/p&gt;

&lt;p&gt;Before installing a replacement, make a short list of what you use. That will help you avoid switching to a simpler SSH client and discovering later that your daily file-transfer or remote-desktop workflow disappeared.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate the protocols from the interface
&lt;/h2&gt;

&lt;p&gt;A common source of confusion is treating related features as interchangeable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SSH&lt;/strong&gt; gives you a secure terminal session to a remote host.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SFTP&lt;/strong&gt; transfers files over SSH. A command-line transfer tool is not the same experience as a graphical file browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RDP and VNC&lt;/strong&gt; are remote desktop protocols. An SSH client that can create a tunnel for RDP is not itself an RDP viewer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X11 forwarding&lt;/strong&gt; sends graphical application traffic through SSH. You still need an X server on the machine displaying the application. SSH support alone does not provide one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MobaXterm combines these capabilities, including a Windows X server. So there may not be a one-app replacement for your setup. Keeping two focused tools can be a better fit than expecting a terminal to become a remote desktop suite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choose by the job you need to keep doing
&lt;/h2&gt;

&lt;p&gt;If most of your work is &lt;strong&gt;SSH terminals and SFTP&lt;/strong&gt;, compare terminal-focused clients such as Tabby, WindTerm, or Bitvise. Tabby and WindTerm are cross-platform; Bitvise is Windows-focused and includes graphical SFTP. PuTTY is another lightweight option for SSH, Telnet, and serial sessions, but its PSFTP and PSCP tools are command-line utilities rather than an integrated graphical file browser.&lt;/p&gt;

&lt;p&gt;For more options focused specifically on Windows, see this &lt;a href="https://shadeterm.com/blog/best-ssh-clients-for-windows/" rel="noopener noreferrer"&gt;comparison of Windows SSH clients&lt;/a&gt;. If you are moving away from PuTTY rather than MobaXterm, this &lt;a href="https://shadeterm.com/blog/best-putty-alternatives/" rel="noopener noreferrer"&gt;guide to PuTTY alternatives&lt;/a&gt; covers a different set of trade-offs.&lt;/p&gt;

&lt;p&gt;If you need &lt;strong&gt;SSH, RDP, and VNC connection management&lt;/strong&gt; together, look at tools built for mixed protocols, such as mRemoteNG on Windows, Royal TS/TSX, or Remmina on Linux. They do not automatically reproduce MobaXterm’s bundled Windows X server.&lt;/p&gt;

&lt;p&gt;If the built-in &lt;strong&gt;Windows X server&lt;/strong&gt; is essential, pause before switching. None of the alternatives in this comparison is a complete drop-in replacement for that feature. Keeping MobaXterm, or planning for a separate X server, may be more practical.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inventory your sessions before migrating
&lt;/h2&gt;

&lt;p&gt;Do not start by uninstalling your current client. First record what each important saved session actually does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hostname, port, and username&lt;/li&gt;
&lt;li&gt;SSH key or other authentication method&lt;/li&gt;
&lt;li&gt;Proxy or jump-host settings&lt;/li&gt;
&lt;li&gt;Port-forwarding rules&lt;/li&gt;
&lt;li&gt;Whether the session uses SFTP, RDP, VNC, or X11&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keep any exported configuration protected. Session files and screenshots can expose host details or credentials, so do not put them in a shared ticket or repository without checking their contents.&lt;/p&gt;

&lt;p&gt;For standard SSH connections, an OpenSSH config entry can make a host easier to reuse across compatible clients. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host production
    HostName 203.0.113.10
    User deploy
    Port 22
    IdentityFile ~/.ssh/id_ed25519
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;203.0.113.10&lt;/code&gt; is an example address, not a real server. With the entry saved in your SSH configuration, connect using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do not assume another application will automatically import MobaXterm passwords, keys, or session settings. Recreate the settings the destination supports, and test them before relying on the new client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test a representative host, not just the login screen
&lt;/h2&gt;

&lt;p&gt;Choose one non-critical host that exercises the features you depend on. Confirm you can connect, authenticate, and run a basic command. When a new client presents an unknown host key, verify its fingerprint through a trusted channel; do not accept an unexpected key just to get past the prompt.&lt;/p&gt;

&lt;p&gt;Then test the companion tasks separately:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Upload and download a file through SFTP. Check the destination and permissions before working with important files.&lt;/li&gt;
&lt;li&gt;Recreate any port forwards and verify the local and remote ports are correct.&lt;/li&gt;
&lt;li&gt;Open an RDP or VNC session with an actual viewer, if you need one.&lt;/li&gt;
&lt;li&gt;Test X11 forwarding if you rely on graphical Linux applications, including whether the new setup supplies an X server on your local machine.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, this OpenSSH command forwards local port 5433 to port 5432 as seen from the remote host:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -L 5433:127.0.0.1:5432 production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That example is not a universal database setup. Confirm the service, destination, and security policy for your environment before using a tunnel with a live server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Switch in stages
&lt;/h2&gt;

&lt;p&gt;Once the representative host works, move the rest in batches. Keep MobaXterm available as a rollback option until you have confirmed every required workflow in the new setup. This matters especially for production hosts, unusual authentication settings, and sessions that combine SSH with other protocols.&lt;/p&gt;

&lt;p&gt;The best replacement is not necessarily the one with the longest feature list. It is the one that covers the specific tasks you rely on—and makes the missing pieces obvious before you commit to the switch.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://shadeterm.com/blog/mobaxterm-alternative/" rel="noopener noreferrer"&gt;ShadeTerm blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://shadeterm.com/" rel="noopener noreferrer"&gt;ShadeTerm&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>tutorial</category>
      <category>security</category>
      <category>devops</category>
    </item>
    <item>
      <title>Leaving Termius? Migrate Your SSH Hosts Without Losing the Important Details</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:35:42 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/leaving-termius-migrate-your-ssh-hosts-without-losing-the-important-details-em9</link>
      <guid>https://dev.to/__3381495fd2b/leaving-termius-migrate-your-ssh-hosts-without-losing-the-important-details-em9</guid>
      <description>&lt;p&gt;Switching SSH clients is easy right up until the first connection fails—or you discover that a saved host included a jump host, a special key, or a port forward you forgot to record.&lt;/p&gt;

&lt;p&gt;The safest approach is to treat migration as rebuilding and verifying your connection workflow, not importing a list of hostnames. A successful shell login is only one part of the test: you may also rely on SFTP, tunnels, mobile access, or shared credentials.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, decide what you’re actually replacing
&lt;/h2&gt;

&lt;p&gt;Termius Starter includes SSH, SFTP, and port forwarding for local use. If those are the only features you need, switching clients may not save you anything. Pro is more relevant if you depend on its personal cloud vault, desktop/mobile sync, session logs, or snippets automation.&lt;/p&gt;

&lt;p&gt;Before choosing a replacement, write down the workflows that matter. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Do you connect from a phone as well as a computer?&lt;/li&gt;
&lt;li&gt;Do you use jump hosts or port forwarding?&lt;/li&gt;
&lt;li&gt;Do you need a graphical SFTP browser, or is the &lt;code&gt;sftp&lt;/code&gt; command enough?&lt;/li&gt;
&lt;li&gt;Are your hosts in a personal list or a shared team vault?&lt;/li&gt;
&lt;li&gt;Do you need a terminal only, or also file editing and other server tools?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These distinctions matter because an SSH client that can open a shell is not automatically a replacement for a synced vault or team access controls. If you’re comparing desktop options, this &lt;a href="https://shadeterm.com/blog/best-ssh-clients-for-windows/" rel="noopener noreferrer"&gt;overview of SSH clients for Windows&lt;/a&gt; can help you compare workflows rather than just terminal screenshots.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make a migration inventory
&lt;/h2&gt;

&lt;p&gt;For each important host, record the connection details you will need to recreate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hostname or IP address&lt;/li&gt;
&lt;li&gt;SSH port and username&lt;/li&gt;
&lt;li&gt;Which private key or agent identity it uses&lt;/li&gt;
&lt;li&gt;Jump-host or host-chain settings&lt;/li&gt;
&lt;li&gt;Local, remote, or dynamic port forwards&lt;/li&gt;
&lt;li&gt;Any notes about the environment or required access&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Treat shared credentials differently from your own personal setup. Follow your organization’s approval and audit rules; don’t casually export shared secrets into a personal client.&lt;/p&gt;

&lt;p&gt;A host profile and a private key are separate things. The fact that an app can connect with a saved profile does not mean another app can import that profile or retrieve the key from the app’s vault. Find the original key material through your approved process, and never paste private keys into chat, issue trackers, or a public repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recreate common hosts with OpenSSH config
&lt;/h2&gt;

&lt;p&gt;Many SSH clients can use OpenSSH configuration, though support varies. A simple alias can save you from repeatedly entering the same host, username, port, and key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host production
    HostName server.example.com
    User deploy
    Port 2222
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the example values with your real connection details. On Windows, the standard OpenSSH user configuration is usually &lt;code&gt;%USERPROFILE%\.ssh\config&lt;/code&gt;; on Unix-like systems, it is usually &lt;code&gt;~/.ssh/config&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If the client supports this configuration, connect with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can inspect the values OpenSSH resolves with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -G production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And get additional connection diagnostics with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -v production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don’t assume every graphical client interprets OpenSSH config in the same way. If it doesn’t, recreate the profile in that client’s documented interface and test it there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test more than the shell
&lt;/h2&gt;

&lt;p&gt;A successful login proves that one SSH connection works. It does not prove that your other workflows survived the move.&lt;/p&gt;

&lt;p&gt;If you use SFTP, test a harmless download and upload in the new client. If you rely on a tunnel, check that the destination application can reach the forwarded port. For example, a local forward to a database listening on the remote server’s loopback interface could look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -N -L 127.0.0.1:15432:127.0.0.1:5432 production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This asks SSH to bind port &lt;code&gt;15432&lt;/code&gt; on your computer and forward traffic to port &lt;code&gt;5432&lt;/code&gt; on the remote side. Your local application would connect to &lt;code&gt;127.0.0.1:15432&lt;/code&gt;. The remote SSH server must permit forwarding, and the database must be reachable from that server. A working tunnel does not make the database safe to expose or grant permission to access it.&lt;/p&gt;

&lt;p&gt;If a login fails with a public-key error, avoid immediately generating new keys or changing server permissions. First confirm that the new client is selecting the intended identity and username. This guide to diagnosing &lt;a href="https://shadeterm.com/blog/ssh-permission-denied-publickey/" rel="noopener noreferrer"&gt;SSH “Permission denied (publickey)” errors&lt;/a&gt; covers common places to investigate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat host-key warnings as security warnings
&lt;/h2&gt;

&lt;p&gt;When you connect from a new client, verify the server’s identity through a trusted source when possible. If you see a changed-host-key warning, investigate it rather than accepting the new key just to finish migration. A successful password or key login doesn’t prove you connected to the intended server.&lt;/p&gt;

&lt;p&gt;Keep the old client available while you test. Move a few representative hosts first, including any that use a nondefault port, a different key, a jump host, or a tunnel. Once those workflows are verified, migrate the rest and decide whether you still need your old client’s paid sync or shared-vault features.&lt;/p&gt;

&lt;p&gt;The goal isn’t to reproduce every screen from your old app. It’s to make sure you can reach the right servers, authenticate with the right keys, verify their identities, and continue the work you actually depend on.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://shadeterm.com/blog/termius-alternative/" rel="noopener noreferrer"&gt;ShadeTerm blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://shadeterm.com/" rel="noopener noreferrer"&gt;ShadeTerm&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Linux File Permissions: Use chmod Without Breaking Access</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Thu, 12 Nov 2026 05:17:00 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/linux-file-permissions-use-chmod-without-breaking-access-4c86</link>
      <guid>https://dev.to/__3381495fd2b/linux-file-permissions-use-chmod-without-breaking-access-4c86</guid>
      <description>&lt;p&gt;A &lt;code&gt;Permission denied&lt;/code&gt; error does not always mean the file needs broader permissions. The cause might be a parent directory, the file’s owner, or an access control that &lt;code&gt;chmod&lt;/code&gt; does not change. Before reaching for &lt;code&gt;chmod 777&lt;/code&gt;, identify which user needs access and what operation they need to perform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the mode before changing it
&lt;/h2&gt;

&lt;p&gt;Start by checking the file, its owner, and the directory itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ls -l report.txt
ls -ld /srv/www/site
stat -c &lt;span class="s1"&gt;'%a %A %U:%G %n'&lt;/span&gt; report.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In &lt;code&gt;ls -l&lt;/code&gt; output, the first character identifies the object type (&lt;code&gt;-&lt;/code&gt; for a regular file, &lt;code&gt;d&lt;/code&gt; for a directory). The next nine characters describe permissions for the owner, group, and others, in that order. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;-rw-r--r-- 1 alice developers 128 Nov 11 10:00 report.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, Alice can read and write the file; members of the group and other users can read it. The owner and group matter: &lt;code&gt;chmod&lt;/code&gt; changes permission bits, not ownership.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;stat -c&lt;/code&gt; is the GNU/Linux form shown here; its options may differ on macOS and BSD.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the numbers mean
&lt;/h2&gt;

&lt;p&gt;Each permission digit is a sum of three bits: read is &lt;code&gt;4&lt;/code&gt;, write is &lt;code&gt;2&lt;/code&gt;, and execute is &lt;code&gt;1&lt;/code&gt;. A mode has one digit each for owner, group, and others.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;644&lt;/code&gt; means &lt;code&gt;rw-r--r--&lt;/code&gt;: owner can read and write; everyone else can read.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;600&lt;/code&gt; means &lt;code&gt;rw-------&lt;/code&gt;: only the owner can read and write.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;755&lt;/code&gt; means &lt;code&gt;rwxr-xr-x&lt;/code&gt;: owner can read, write, and execute; others can read and execute.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;700&lt;/code&gt; means &lt;code&gt;rwx------&lt;/code&gt;: only the owner has access.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Apply a mode to a specific path, then verify it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chmod 644 report.txt
stat -c &lt;span class="s1"&gt;'%a %A %n'&lt;/span&gt; report.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These modes are examples, not universal defaults. A private file such as a secret should not be readable by everyone. For example, &lt;a href="https://sshflow.com/blog/chmod-600/" rel="noopener noreferrer"&gt;when &lt;code&gt;chmod 600&lt;/code&gt; is appropriate—and when it is not&lt;/a&gt; is especially relevant when setting permissions on private SSH keys.&lt;/p&gt;

&lt;p&gt;If you only need to add or remove a particular permission, symbolic modes can be more precise than replacing the whole mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chmod u+x deploy.sh       &lt;span class="c"&gt;# add execute for the owner&lt;/span&gt;
chmod g+w shared.txt      &lt;span class="c"&gt;# add group write&lt;/span&gt;
chmod o-r private.txt     &lt;span class="c"&gt;# remove read for others&lt;/span&gt;
chmod &lt;span class="nv"&gt;u&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;rw,g=r,o= config.ini  &lt;span class="c"&gt;# set owner rw, group r, others none&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;u&lt;/code&gt;, &lt;code&gt;g&lt;/code&gt;, and &lt;code&gt;o&lt;/code&gt; mean owner, group, and others. &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;-&lt;/code&gt; change selected bits while leaving unrelated ones alone; &lt;code&gt;=&lt;/code&gt; sets the specified class exactly. Thus &lt;code&gt;chmod u+x deploy.sh&lt;/code&gt; does not also make the script executable by everyone else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Directories have different rules
&lt;/h2&gt;

&lt;p&gt;Read, write, and execute mean something different for a directory than for a regular file:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read (&lt;code&gt;r&lt;/code&gt;)&lt;/strong&gt; lets a user list entry names.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write (&lt;code&gt;w&lt;/code&gt;)&lt;/strong&gt; allows creating, deleting, or renaming entries, normally in combination with execute access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execute (&lt;code&gt;x&lt;/code&gt;)&lt;/strong&gt; allows traversing or searching the directory to access entries by name.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last bit explains a common surprise: a file can be readable but still inaccessible if a parent directory does not allow traversal. Inspect the path components with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;namei -l /srv/www/site/index.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A mode like &lt;code&gt;755&lt;/code&gt; is often used for a directory that should be traversable by other users, while &lt;code&gt;700&lt;/code&gt; restricts it to its owner. Choose based on the users and processes that actually need access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Be careful with recursive changes
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;chmod -R&lt;/code&gt; applies a change throughout a directory tree, including both files and directories. That can break access in either direction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chmod -R 755 public/  &lt;span class="c"&gt;# also marks regular files executable&lt;/span&gt;
chmod -R 644 public/  &lt;span class="c"&gt;# removes directory traversal permission&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you are certain a tree contains only public, non-executable files and ordinary directories, you can handle the two types separately. Preview the paths first and replace the example with a verified target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ROOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME/site"&lt;/span&gt;
find &lt;span class="s2"&gt;"$ROOT"&lt;/span&gt; -type d -print
find &lt;span class="s2"&gt;"$ROOT"&lt;/span&gt; -type f -print

find &lt;span class="s2"&gt;"$ROOT"&lt;/span&gt; -type d -exec chmod 755 &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; +
find &lt;span class="s2"&gt;"$ROOT"&lt;/span&gt; -type f -exec chmod 644 &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; +
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is not a general-purpose repair recipe. It would remove execute permission from scripts and could expose private files. For a narrower change that adds execute only to directories and files that already have some execute bit set, GNU/Linux supports uppercase &lt;code&gt;X&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chmod -R u+X &lt;span class="s2"&gt;"$ROOT"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the target before any recursive operation, especially on application or deployment directories.&lt;/p&gt;

&lt;h2&gt;
  
  
  When chmod does not fix it
&lt;/h2&gt;

&lt;p&gt;First establish which account is doing the operation and which path it is trying to access. Then check ownership and the whole path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;id
ls -l /srv/app/config.ini
namei -l /srv/app/config.ini
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the file belongs to the wrong account, changing its mode may not be the right fix. Ownership can be changed with &lt;code&gt;chown&lt;/code&gt;, but confirm the intended owner and group before using it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo chown appuser:appgroup /srv/app/config.ini
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the mode and ownership look correct, other controls may be involved, such as ACLs, a read-only mount, or SELinux. On systems with ACL tools installed, &lt;code&gt;getfacl /path/to/file&lt;/code&gt; can show additional entries. A trailing &lt;code&gt;+&lt;/code&gt; in &lt;code&gt;ls -l&lt;/code&gt; can indicate extended ACLs.&lt;/p&gt;

&lt;p&gt;For remote file transfers, remember that permissions apply on the server’s filesystem. A local &lt;code&gt;chmod&lt;/code&gt; does not change a remote file; the server account must be allowed to change it. If the error occurs during an SFTP transfer, this &lt;a href="https://sshflow.com/blog/sftp-permission-denied/" rel="noopener noreferrer"&gt;SFTP permission troubleshooting guide&lt;/a&gt; covers remote ownership, paths, and other causes.&lt;/p&gt;

&lt;p&gt;Avoid &lt;code&gt;chmod 777&lt;/code&gt; as a general fix. It grants read, write, and execute or directory traversal access to owner, group, and others. On a regular file, world-write access can let unrelated local users modify it; on a directory, it can allow them to create or remove entries. It also does not resolve ownership problems, ACLs, or read-only mounts.&lt;/p&gt;

&lt;p&gt;A safer workflow is simple: inspect the mode and owner, identify the account that needs access, make the smallest change on the specific path, and verify the result. When access still fails, investigate the path and other controls rather than making everything writable.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://sshflow.com/blog/how-to-change-file-permissions-linux/" rel="noopener noreferrer"&gt;SSHFlow blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://sshflow.com/" rel="noopener noreferrer"&gt;SSHFlow&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>productivity</category>
      <category>devops</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Choosing a WinSCP Alternative: Start With the Job, Not the App</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Thu, 15 Oct 2026 05:15:24 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/choosing-a-winscp-alternative-start-with-the-job-not-the-app-30mm</link>
      <guid>https://dev.to/__3381495fd2b/choosing-a-winscp-alternative-start-with-the-job-not-the-app-30mm</guid>
      <description>&lt;p&gt;WinSCP already does a lot: SFTP, SCP, FTP/FTPS, WebDAV and S3, plus directory synchronization and Windows scripting. If you’re looking for an alternative, the useful question isn’t “Which app is best?” It’s “Which part of my workflow does WinSCP no longer fit?”&lt;/p&gt;

&lt;p&gt;That distinction matters. A tool that works on macOS may not offer WinSCP’s automation, and an SSH terminal with a file browser may not replace a dedicated transfer client.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, identify the task you need to replace
&lt;/h2&gt;

&lt;p&gt;List what you actually use before comparing apps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Moving files manually:&lt;/strong&gt; Do you need a two-pane browser, transfer queue, or support for several protocols?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connecting from another operating system:&lt;/strong&gt; Are you moving to macOS or Linux, where WinSCP doesn’t offer a native desktop app?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Working with cloud storage:&lt;/strong&gt; Do you need S3, Google Drive, OneDrive, or another provider?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Administering a server:&lt;/strong&gt; Do you want a terminal and file browser together, or are you happy using separate tools?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automating transfers:&lt;/strong&gt; Do existing scripts, scheduled jobs, or .NET integrations depend on WinSCP?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mounting remote files:&lt;/strong&gt; Do you want remote storage to appear in Finder or File Explorer, rather than opening a transfer client?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are different needs. A mount tool, a terminal emulator, and an SFTP client aren’t interchangeable just because each can access remote files.&lt;/p&gt;

&lt;p&gt;It also helps to check the protocol requirement. &lt;strong&gt;SFTP runs over SSH; FTPS is FTP secured with TLS.&lt;/strong&gt; They’re distinct protocols, so a client supporting one doesn’t necessarily support the other. If you’re weighing transfer options, this &lt;a href="https://sshflow.com/blog/best-sftp-clients/" rel="noopener noreferrer"&gt;SFTP client comparison&lt;/a&gt; can help you narrow the category before picking an app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shortlist by operating system and workflow
&lt;/h2&gt;

&lt;h3&gt;
  
  
  If you want a free, cross-platform file-transfer client
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;FileZilla Client&lt;/strong&gt; is a straightforward starting point for FTP, FTPS, and SFTP on Windows, macOS, and Linux. Its standard client is free. Some cloud integrations are part of FileZilla Pro, so check which edition supports the services you need.&lt;/p&gt;

&lt;p&gt;It’s a practical choice when your core job is browsing local and remote files and transferring them. It isn’t a one-for-one substitute for WinSCP’s Windows scripting and .NET assembly.&lt;/p&gt;

&lt;h3&gt;
  
  
  If you need SFTP plus cloud storage
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Cyberduck&lt;/strong&gt; is available for Windows and macOS and supports SFTP alongside a range of cloud storage services. The base app is free and open source. It’s a file and storage browser, not an interactive SSH terminal, and it doesn’t have a native Linux desktop release.&lt;/p&gt;

&lt;h3&gt;
  
  
  If you’re on macOS
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;ForkLift&lt;/strong&gt; offers a Mac-native, two-pane file-manager workflow with remote connections and cloud services. &lt;strong&gt;Transmit&lt;/strong&gt; is another paid Mac option focused on transfers and synchronization. They’re not Linux or Windows replacements, and their licensing differs. Check current platform requirements and terms before buying.&lt;/p&gt;

&lt;h3&gt;
  
  
  If you want a Windows SSH terminal and graphical SFTP
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Bitvise SSH Client&lt;/strong&gt; combines SSH terminal and graphical SFTP workflows on Windows. It’s a reasonable option if you’ve been using WinSCP alongside a separate terminal client.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MobaXterm&lt;/strong&gt; is a broader Windows toolbox that includes SSH, SFTP, and tools for other remote-access workflows such as X11. Its free Home edition has limits; check the current edition details if saved sessions, tunnels, or macros matter to you.&lt;/p&gt;

&lt;h3&gt;
  
  
  If automation is the priority
&lt;/h3&gt;

&lt;p&gt;Don’t switch away from WinSCP just because a different client has a newer interface. WinSCP’s scripting interface and .NET assembly can be important parts of a deployment or backup process. A graphical alternative may not run those jobs, and another command-line tool won’t automatically understand existing WinSCP scripts.&lt;/p&gt;

&lt;p&gt;For cross-platform transfer automation, &lt;strong&gt;rclone&lt;/strong&gt; is worth evaluating. It supports SFTP and many cloud backends, but it’s a command-line tool rather than a two-pane file manager. Be especially careful with synchronization: &lt;code&gt;rclone sync&lt;/code&gt; can delete files at the destination to make it match the source. Test paths and use a dry run before relying on a new job.&lt;/p&gt;

&lt;p&gt;Also distinguish SCP from SFTP when migrating. WinSCP supports both, but many modern workflows use SFTP; this explanation of &lt;a href="https://sshflow.com/blog/scp-vs-sftp/" rel="noopener noreferrer"&gt;how SCP and SFTP differ&lt;/a&gt; is useful if an old script or server specifically requires SCP.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migrate without breaking a working setup
&lt;/h2&gt;

&lt;p&gt;Treat a client migration like a small infrastructure change—not just an app install.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Inventory your saved sites.&lt;/strong&gt; Record hostnames, ports, usernames, protocols, key locations, proxy or jump-host settings, and default remote directories.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Find every automation dependency.&lt;/strong&gt; Search for scheduled tasks, scripts, and applications that invoke WinSCP. A site you rarely open manually may still be used by a nightly job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recreate connections using supported import tools.&lt;/strong&gt; Don’t assume a destination client can import WinSCP’s settings. An export file can also contain sensitive connection details, so protect it accordingly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify the server’s identity.&lt;/strong&gt; When the new client first connects, check the host-key fingerprint through a trusted channel. Don’t accept a changed or unfamiliar key just to get past a warning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test a harmless transfer.&lt;/strong&gt; Confirm the remote directory, permissions, file contents, and transfer direction before editing production files or changing a sync job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a rollback path.&lt;/strong&gt; Retain the old configuration and scripts until the replacement has passed the real tasks you depend on.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A practical decision rule
&lt;/h2&gt;

&lt;p&gt;If you use Windows and mainly need reliable file transfers or mature WinSCP scripts, staying with WinSCP may be the simplest choice. If you need a native Mac or Linux client, start with a cross-platform transfer tool. If you want a Windows terminal alongside graphical SFTP, evaluate an SSH client that includes both. If repeatable automation is the job, test the replacement’s command-line behavior before migrating production tasks.&lt;/p&gt;

&lt;p&gt;The best alternative is the one that covers the specific gap without quietly removing a feature you rely on. If WinSCP still handles your workflow, there’s no technical prize for replacing it.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://sshflow.com/blog/best-winscp-alternatives/" rel="noopener noreferrer"&gt;SSHFlow blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://sshflow.com/" rel="noopener noreferrer"&gt;SSHFlow&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
    <item>
      <title>Choosing a Termius Alternative: Match the Client to Your SSH Workflow</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Thu, 15 Oct 2026 04:31:04 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/choosing-a-termius-alternative-match-the-client-to-your-ssh-workflow-59ek</link>
      <guid>https://dev.to/__3381495fd2b/choosing-a-termius-alternative-match-the-client-to-your-ssh-workflow-59ek</guid>
      <description>&lt;p&gt;Replacing an SSH client is easy to regret if you compare only terminal screenshots. The real question is which parts of your workflow you need to keep: mobile access, saved hosts, graphical file transfers, port forwarding, or tools for working on the server after you connect.&lt;/p&gt;

&lt;p&gt;Termius already has a free Starter plan with SSH, SFTP, and port forwarding. Its paid plans add features such as a personal cloud vault and device synchronization. If those free features are all you use, switching may not solve a problem. If you rely on synced hosts or mobile access, a desktop-only alternative may be a downgrade even if it costs less.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the job you need the client to do
&lt;/h2&gt;

&lt;p&gt;Write down what you actually do in a typical session. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connect to a few servers from one Windows machine.&lt;/li&gt;
&lt;li&gt;Open several terminal sessions and keep them organized.&lt;/li&gt;
&lt;li&gt;Upload files through a graphical SFTP browser.&lt;/li&gt;
&lt;li&gt;Forward a port to reach a service on a remote server.&lt;/li&gt;
&lt;li&gt;Connect from a phone when away from your computer.&lt;/li&gt;
&lt;li&gt;Share hosts or credentials with a team.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These needs point to different tools. “Supports SSH” is only a starting point: it does not tell you whether an app has graphical SFTP, a mobile app, team controls, or a convenient way to manage tunnels.&lt;/p&gt;

&lt;p&gt;A useful distinction: &lt;strong&gt;SFTP support is not the same as a graphical SFTP file manager.&lt;/strong&gt; OpenSSH provides command-line tools such as &lt;code&gt;sftp&lt;/code&gt;; a client with a visual file browser is a better fit if you want to drag and drop files. Similarly, SSH port forwarding carries traffic through an SSH connection; it is not the same thing as an embedded remote-desktop client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Match the alternative to your setup
&lt;/h2&gt;

&lt;h3&gt;
  
  
  You want a free desktop terminal
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Tabby&lt;/strong&gt; is a free, open-source terminal for Windows, macOS, and Linux. It offers SSH sessions, tabs, split panes, and customization through plugins. It is a reasonable choice if you want a configurable desktop workflow and do not need Termius-style synced hosts across desktop and mobile devices.&lt;/p&gt;

&lt;p&gt;Tabby is based on Electron, and its maintainers do not describe it as lightweight. Choose it for its features and customization rather than assuming it will use fewer resources than another client.&lt;/p&gt;

&lt;h3&gt;
  
  
  You need SSH, graphical SFTP, and tunnels on Windows
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Bitvise SSH Client&lt;/strong&gt; is a free Windows option with SSH, a graphical SFTP interface, and port-forwarding features. The client is free for use in business environments too; its optional paid license concerns support and upgrade commitments. Bitvise SSH Server is separate software, so do not confuse the client’s terms with the server’s.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MobaXterm&lt;/strong&gt; may fit if your Windows toolbox also needs RDP, VNC, or an X server for displaying remote Linux GUI applications. Its free Home edition has limits, so check the current edition terms before adopting it for a team or a larger set of sessions.&lt;/p&gt;

&lt;h3&gt;
  
  
  You mostly transfer files
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;WinSCP&lt;/strong&gt; is designed around file transfers rather than being a full SSH terminal manager. It supports graphical transfers, scripting, and directory synchronization. If you mainly connect to upload releases or manage remote files, that focus may be an advantage. If you also need interactive terminal sessions, pair it with an SSH client or choose a tool that combines both workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  You want a minimal, command-line setup
&lt;/h3&gt;

&lt;p&gt;Windows includes OpenSSH as an optional feature, and it is commonly available on Linux and macOS. You can connect directly from a terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh user@server.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For repeated connections, a host entry in your SSH config can save the hostname, user, port, and identity file. The &lt;a href="https://sshflow.com/blog/ssh-config-example/" rel="noopener noreferrer"&gt;SSH config file examples&lt;/a&gt; show how to organize those settings and connect with a short alias. OpenSSH is a good fit if you prefer ordinary text configuration over a graphical host manager; it does not provide a graphical SFTP browser by itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat migration as a security task
&lt;/h2&gt;

&lt;p&gt;A saved host entry, a private key, an agent-loaded identity, and a team vault are different things. Do not assume one client can import all of them automatically. Record the host, username, port, key choice, jump-host settings, and any tunnels you depend on. Then test a few important connections in the new client before changing your existing setup.&lt;/p&gt;

&lt;p&gt;Keep private keys private. Do not paste them into chat, tickets, or repositories to make migration easier. If you are moving or replacing keys, plan access and revocation deliberately; this overview of &lt;a href="https://sshflow.com/blog/ssh-key-management/" rel="noopener noreferrer"&gt;SSH key management&lt;/a&gt; covers the key lifecycle and the risks of leaving stale credentials in place.&lt;/p&gt;

&lt;p&gt;Also verify server identity when connecting through a new client. If it warns that a host key has changed unexpectedly, investigate the change rather than accepting it just to finish setup. A successful password or key login does not, on its own, establish that you reached the intended server.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical decision checklist
&lt;/h2&gt;

&lt;p&gt;Before settling on an alternative, test it with a non-critical host and answer these questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Can it use the authentication method and key you need?&lt;/li&gt;
&lt;li&gt;Does it provide a graphical SFTP interface if you want one?&lt;/li&gt;
&lt;li&gt;Can it reproduce your jump-host and port-forwarding workflow?&lt;/li&gt;
&lt;li&gt;Does it run on every device you use, including your phone if necessary?&lt;/li&gt;
&lt;li&gt;Are host sync and team sharing included, and do they meet your security requirements?&lt;/li&gt;
&lt;li&gt;Can you get your configuration and credentials back if you lose access to the app or device?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you only need occasional terminal access, OpenSSH or PuTTY may be enough. For free Windows SSH with graphical file transfer and tunneling, consider Bitvise. For a customizable cross-platform terminal, try Tabby. For mobile access and synchronized hosts, check that the replacement actually offers those capabilities before leaving Termius.&lt;/p&gt;

&lt;p&gt;The best alternative is not the one with the longest feature list. It is the one that preserves the parts of your SSH workflow you rely on—and does not make you pay for, configure, or trust features you do not need.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://sshflow.com/blog/termius-alternative/" rel="noopener noreferrer"&gt;SSHFlow blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://sshflow.com/" rel="noopener noreferrer"&gt;SSHFlow&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Use the Linux tree Command to Understand a Project’s Structure</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Wed, 14 Oct 2026 00:35:07 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/use-the-linux-tree-command-to-understand-a-projects-structure-2nb3</link>
      <guid>https://dev.to/__3381495fd2b/use-the-linux-tree-command-to-understand-a-projects-structure-2nb3</guid>
      <description>&lt;p&gt;&lt;code&gt;ls&lt;/code&gt; is useful when you need to see what’s in one directory. But when you need to understand how a project’s folders fit together, a flat listing can hide the structure. The &lt;code&gt;tree&lt;/code&gt; command displays files and directories as a branching outline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get a focused overview
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;tree&lt;/code&gt; with no arguments to start at your current directory, or pass a path to inspect a specific folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tree
tree ./project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A small project might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;project
├── README.md
├── src
│   └── app.py
└── tests
    └── test_app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The branches make the parent-child relationships visible: &lt;code&gt;src&lt;/code&gt; and &lt;code&gt;tests&lt;/code&gt; are inside &lt;code&gt;project&lt;/code&gt;, and each file appears beneath its parent directory.&lt;/p&gt;

&lt;p&gt;A full recursive listing can quickly become unwieldy, especially in a repository with generated files or dependencies. Use &lt;code&gt;-L&lt;/code&gt; to limit how many levels are shown:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tree &lt;span class="nt"&gt;-L&lt;/span&gt; 2 ./project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That gives you a useful first pass without expanding every nested folder. If the result is still noisy, start from a narrower path or combine the depth limit with filters below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install it if the command is missing
&lt;/h2&gt;

&lt;p&gt;Check whether &lt;code&gt;tree&lt;/code&gt; is available:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tree &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your shell reports that the command cannot be found, install the &lt;code&gt;tree&lt;/code&gt; package using the package manager for your distribution:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Ubuntu or Debian&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;tree

&lt;span class="c"&gt;# Fedora&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;dnf &lt;span class="nb"&gt;install &lt;/span&gt;tree

&lt;span class="c"&gt;# Arch Linux&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;pacman &lt;span class="nt"&gt;-S&lt;/span&gt; tree

&lt;span class="c"&gt;# openSUSE&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;zypper &lt;span class="nb"&gt;install &lt;/span&gt;tree
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These commands install software system-wide and typically require administrator privileges. Afterward, verify the command with &lt;code&gt;tree --version&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shape the output around your task
&lt;/h2&gt;

&lt;p&gt;A few options make the listing more useful without changing anything on disk:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Show directories, not files&lt;/span&gt;
tree &lt;span class="nt"&gt;-d&lt;/span&gt; ./project

&lt;span class="c"&gt;# Include hidden entries, such as .git&lt;/span&gt;
tree &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="nt"&gt;-L&lt;/span&gt; 2 ./project

&lt;span class="c"&gt;# Skip bulky or irrelevant directories&lt;/span&gt;
tree &lt;span class="nt"&gt;-I&lt;/span&gt; &lt;span class="s1"&gt;'node_modules|.git'&lt;/span&gt; ./project

&lt;span class="c"&gt;# Show matching filenames while keeping their location in the tree&lt;/span&gt;
tree &lt;span class="nt"&gt;-P&lt;/span&gt; &lt;span class="s1"&gt;'*.conf'&lt;/span&gt; ./project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use &lt;code&gt;-d&lt;/code&gt; for a quick map of the folder layout. Add &lt;code&gt;-a&lt;/code&gt; when hidden files matter; these are omitted by default. For a large repository, &lt;code&gt;-I&lt;/code&gt; can leave out names you don’t want to inspect. &lt;code&gt;-P&lt;/code&gt; selects names matching a pattern.&lt;/p&gt;

&lt;p&gt;Quote wildcard patterns such as &lt;code&gt;'*.conf'&lt;/code&gt;. The quotes stop your shell from expanding the wildcard before &lt;code&gt;tree&lt;/code&gt; receives it. In the ignore example, patterns are separated with &lt;code&gt;|&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can also show extra file details:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tree &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="nt"&gt;-h&lt;/span&gt; &lt;span class="nt"&gt;-D&lt;/span&gt; ./project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This adds permissions, human-readable sizes, and modification dates to the listing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choose the right listing tool
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;tree&lt;/code&gt; when the relationships between nested folders matter. For a quick view of just the current directory, &lt;a href="https://sshflow.com/blog/ls-command-in-linux/" rel="noopener noreferrer"&gt;&lt;code&gt;ls&lt;/code&gt; has options for hidden files, long-format details, and sorting&lt;/a&gt;. If you need to locate files by conditions rather than browse the hierarchy, &lt;a href="https://sshflow.com/blog/linux-find-command/" rel="noopener noreferrer"&gt;&lt;code&gt;find&lt;/code&gt; can search by name, type, size, and other criteria&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;tree&lt;/code&gt; is also different from &lt;code&gt;pstree&lt;/code&gt;: the former shows files and directories, while &lt;code&gt;pstree&lt;/code&gt; shows running processes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Save a listing to share or review later
&lt;/h2&gt;

&lt;p&gt;Redirect the output to a text file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tree &lt;span class="nt"&gt;-L&lt;/span&gt; 2 ./project &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; project-tree.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;&amp;gt;&lt;/code&gt; operator creates the file or replaces its existing contents. To append instead, use &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tree &lt;span class="nt"&gt;-L&lt;/span&gt; 2 ./project &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; project-tree.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you don’t want the report to appear in the listing, save it outside the directory you’re inspecting. Be careful with &lt;code&gt;&amp;gt;&lt;/code&gt; if the destination file already contains something you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  A few common surprises
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The output is too long:&lt;/strong&gt; specify the directory you care about and use &lt;code&gt;-L&lt;/code&gt; to cap the depth. Try &lt;code&gt;-d&lt;/code&gt; for a directory-only view or &lt;code&gt;-I&lt;/code&gt; to skip noisy folders.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some entries are missing:&lt;/strong&gt; hidden names are excluded unless you use &lt;code&gt;-a&lt;/code&gt;. Entries can also be inaccessible if your user cannot read the relevant directories. Check permissions on the path in question rather than automatically running the command with elevated privileges.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A filter doesn’t behave as expected:&lt;/strong&gt; &lt;code&gt;-P&lt;/code&gt; selects matching names; &lt;code&gt;-I&lt;/code&gt; ignores matching names. Quote patterns so the shell passes them to &lt;code&gt;tree&lt;/code&gt; unchanged. These filters affect the display, not the files themselves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The command is installed but unavailable:&lt;/strong&gt; you might be in a different system or container than expected, or its executable may not be on your shell’s &lt;code&gt;PATH&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For most project inspections, start small: pick the directory, add a depth limit, then include hidden entries or filters only if the task calls for them. That produces a readable map without turning a quick check into a scroll through every file.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://sshflow.com/blog/linux-tree-command/" rel="noopener noreferrer"&gt;SSHFlow blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://sshflow.com/" rel="noopener noreferrer"&gt;SSHFlow&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Using echo in Linux: Quoting, Redirection, and When to Use printf</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Wed, 14 Oct 2026 00:34:48 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/using-echo-in-linux-quoting-redirection-and-when-to-use-printf-3gc1</link>
      <guid>https://dev.to/__3381495fd2b/using-echo-in-linux-quoting-redirection-and-when-to-use-printf-3gc1</guid>
      <description>&lt;p&gt;&lt;code&gt;echo&lt;/code&gt; is handy for printing a quick message or checking a variable, but its behavior can be less predictable when you rely on options or backslash escapes. Knowing where the shell fits in—and when to switch to &lt;code&gt;printf&lt;/code&gt;—helps avoid confusing output in scripts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shell processes text before echo sees it
&lt;/h2&gt;

&lt;p&gt;A basic command prints its arguments to standard output, usually your terminal, followed by a newline:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo &lt;/span&gt;Hello, Linux
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello, Linux
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The shell handles quoting and variable expansion before it runs &lt;code&gt;echo&lt;/code&gt;. That means &lt;code&gt;echo&lt;/code&gt; displays the value of a variable; it doesn't look up the variable itself.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'$HOME'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first command prints the value of &lt;code&gt;HOME&lt;/code&gt;. Double quotes allow the shell to expand the variable while keeping its value together as one argument, including if it contains spaces. Single quotes prevent expansion, so the second command prints the literal text &lt;code&gt;$HOME&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Double quotes also allow command substitution. The shell runs &lt;code&gt;date&lt;/code&gt;, substitutes its output, and passes the resulting text to &lt;code&gt;echo&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Today is &lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more on making shell variables available to commands launched from the shell, see this guide to &lt;a href="https://sshflow.com/blog/linux-export-command/" rel="noopener noreferrer"&gt;exporting environment variables in Linux&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Redirect output to a file
&lt;/h2&gt;

&lt;p&gt;The shell—not &lt;code&gt;echo&lt;/code&gt;—handles redirection. Use &lt;code&gt;&amp;gt;&lt;/code&gt; to create a file or replace its contents, and &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; to append to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"First line"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; notes.txt
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Another line"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; notes.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Be careful with &lt;code&gt;&amp;gt;&lt;/code&gt;: if &lt;code&gt;notes.txt&lt;/code&gt; already exists, its contents are overwritten. The second command adds a line at the end instead. If you're choosing between &lt;code&gt;echo&lt;/code&gt; and other ways to &lt;a href="https://sshflow.com/blog/linux-create-file/" rel="noopener noreferrer"&gt;create a file in Linux&lt;/a&gt;, keep that overwrite behavior in mind.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do &lt;code&gt;-n&lt;/code&gt; and &lt;code&gt;-e&lt;/code&gt; do?
&lt;/h2&gt;

&lt;p&gt;Two options you may see are &lt;code&gt;-n&lt;/code&gt; and &lt;code&gt;-e&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-n&lt;/code&gt; suppresses the final newline in common implementations.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-e&lt;/code&gt; interprets selected backslash escapes in implementations that support it. For example, &lt;code&gt;\n&lt;/code&gt; represents a newline and &lt;code&gt;\t&lt;/code&gt; a tab.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Bash, this prints two lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s2"&gt;"one&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;two"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;However, &lt;code&gt;echo&lt;/code&gt; can be a shell builtin or an external program, and implementations don't handle these options and escapes consistently. A command that works in one shell may behave differently in another. Avoid depending on &lt;code&gt;-e&lt;/code&gt; for scripts that need predictable output.&lt;/p&gt;

&lt;p&gt;You can inspect how your current shell resolves &lt;code&gt;echo&lt;/code&gt; with this Bash command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;type&lt;/span&gt; &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It can show whether &lt;code&gt;echo&lt;/code&gt; is a builtin and whether an executable with the same name is also available. The behavior you get depends on which implementation is used.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use printf when the output needs to be predictable
&lt;/h2&gt;

&lt;p&gt;For short messages, &lt;code&gt;echo&lt;/code&gt; is usually enough. Prefer &lt;code&gt;printf&lt;/code&gt; when you need formatted output, need precise control over newlines, or want predictable handling of backslashes across shells.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'one\ntwo\n'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For variables, use format placeholders such as &lt;code&gt;%s&lt;/code&gt; and pass the values as separate, quoted arguments:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'User: %s\nHome: %s\n'&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$USER&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;code&gt;\n&lt;/code&gt; in the format string creates a newline, and each &lt;code&gt;%s&lt;/code&gt; is replaced by the corresponding value. Quoting the variable arguments keeps their contents as data rather than letting spaces split them into multiple arguments.&lt;/p&gt;

&lt;p&gt;This distinction matters when text might begin with a hyphen. With &lt;code&gt;echo&lt;/code&gt;, option-like text can be ambiguous because some implementations interpret options. &lt;code&gt;printf&lt;/code&gt; makes the format explicit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s\n'&lt;/span&gt; &lt;span class="s1"&gt;'-starting with a hyphen'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A quick rule of thumb
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;echo&lt;/code&gt; for a simple message when its default trailing newline is what you want. Use &lt;code&gt;printf&lt;/code&gt; for formatted output or scripts where exact behavior matters. And remember that variable expansion, quoting, and redirection are handled by the shell before the command runs.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://sshflow.com/blog/echo-command-linux/" rel="noopener noreferrer"&gt;SSHFlow blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://sshflow.com/" rel="noopener noreferrer"&gt;SSHFlow&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Linux `export`: How Shell Variables Reach Other Commands</title>
      <dc:creator>Nate</dc:creator>
      <pubDate>Wed, 14 Oct 2026 00:34:28 +0000</pubDate>
      <link>https://dev.to/__3381495fd2b/linux-export-how-shell-variables-reach-other-commands-een</link>
      <guid>https://dev.to/__3381495fd2b/linux-export-how-shell-variables-reach-other-commands-een</guid>
      <description>&lt;p&gt;A variable you set in a terminal is not automatically available to every command you run. In Bash and other POSIX-compatible shells, &lt;code&gt;export&lt;/code&gt; marks a variable so that commands launched afterward receive it in their environment.&lt;/p&gt;

&lt;p&gt;That distinction matters when a script behaves differently from your interactive shell, or when you set a value and expect a separate program to see it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shell variable vs. environment variable
&lt;/h2&gt;

&lt;p&gt;A shell can store a variable for its own use without passing it to child processes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;APP_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;development
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check it in the current shell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s\n'&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$APP_MODE&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But a new shell launched from that session does not inherit the value unless it was exported:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sh &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'printf "%s\n" "${APP_MODE-unset}"'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This prints &lt;code&gt;unset&lt;/code&gt;. The variable exists in the parent shell, but it is not part of the environment that the parent passes to the child.&lt;/p&gt;

&lt;p&gt;Export it when you assign it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;APP_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;development
sh &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'printf "%s\n" "$APP_MODE"'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the child prints &lt;code&gt;development&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can also export a variable after assigning it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;APP_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;development
&lt;span class="nb"&gt;export &lt;/span&gt;APP_MODE
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The assignment sets the value; &lt;code&gt;export APP_MODE&lt;/code&gt; marks it for inheritance by subsequently launched child processes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Environment variables flow downward
&lt;/h2&gt;

&lt;p&gt;Exporting is about process inheritance. A child process receives the exported environment when it starts. If that child changes a variable, the change does not flow back into the parent shell. And exporting a value now does not update processes that were already running.&lt;/p&gt;

&lt;p&gt;For a one-off command, you can set a variable just for that command without changing the parent shell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;APP_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;development sh &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'printf "%s\n" "$APP_MODE"'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is useful for testing a program under a particular setting. By contrast, &lt;code&gt;export APP_MODE=development&lt;/code&gt; makes the variable available to later child commands launched from the current shell, too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common uses: &lt;code&gt;PATH&lt;/code&gt; and application settings
&lt;/h2&gt;

&lt;p&gt;A common reason to export a variable is to add a directory to &lt;code&gt;PATH&lt;/code&gt; so commands launched from the shell can find programs there:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/bin:&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This prepends &lt;code&gt;$HOME/bin&lt;/code&gt; while preserving the existing &lt;code&gt;PATH&lt;/code&gt;. Only add directories you trust and can use. Running the command repeatedly in the same shell adds the directory repeatedly, so take care before putting it in a startup file that may be read more than once.&lt;/p&gt;

&lt;p&gt;Applications may also read environment variables for configuration. For example, if your network provides an HTTP proxy, you might set:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;HTTP_PROXY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://proxy.example:8080"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That address is a placeholder; use the endpoint supplied for your environment. Applications vary in which proxy variable names they support, so check the application’s documentation. Avoid putting credentials in commands if they could be saved in your shell history.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check, remove, or stop exporting a variable
&lt;/h2&gt;

&lt;p&gt;In Bash and many POSIX shells, &lt;code&gt;export -p&lt;/code&gt; lists variables marked for export:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the output before sharing it: environment variables can contain sensitive values. To print just one value, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s\n'&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$APP_MODE&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An empty result does not tell you whether the variable is unset or set to an empty string. To distinguish those cases:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;APP_MODE&lt;/span&gt;&lt;span class="p"&gt;+x&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
  &lt;/span&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'APP_MODE is set\n'&lt;/span&gt;
&lt;span class="k"&gt;else
  &lt;/span&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'APP_MODE is not set\n'&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To remove a variable entirely from the current shell, use &lt;code&gt;unset&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;unset &lt;/span&gt;APP_MODE
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In shells that support it, &lt;code&gt;export -n APP_MODE&lt;/code&gt; removes the export attribute but retains the shell variable’s value. Future child processes will no longer inherit it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make a setting available in future shells
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;export&lt;/code&gt; changes the current shell environment; it does not make a setting permanent or system-wide. It also does not affect unrelated terminal windows. To have a variable set in future sessions, put an appropriate assignment in a startup file that the shell actually reads. Which file is right depends on the shell and whether it starts as a login or interactive shell.&lt;/p&gt;

&lt;p&gt;After changing a startup file, open a new matching shell or source the file to apply the change to your current shell. Then check the value with &lt;code&gt;printf&lt;/code&gt;. Be especially careful with startup-file changes to &lt;code&gt;PATH&lt;/code&gt;: a typo can affect commands in every shell that reads that file.&lt;/p&gt;

&lt;p&gt;If a script uses shell syntax, its interpreter matters: the shebang determines which shell runs it. See &lt;a href="https://sshflow.com/blog/run-sh-file-linux/" rel="noopener noreferrer"&gt;how to run a shell script in Linux&lt;/a&gt; for the distinction between invoking a script with a shell and running it directly. For Windows setups, &lt;a href="https://sshflow.com/blog/bash-for-windows/" rel="noopener noreferrer"&gt;choosing Bash or WSL&lt;/a&gt; can help clarify which shell is interpreting your commands.&lt;/p&gt;

&lt;h2&gt;
  
  
  When &lt;code&gt;export&lt;/code&gt; is not recognized
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;export&lt;/code&gt; is a shell builtin in Bash and POSIX-compatible shells such as &lt;code&gt;sh&lt;/code&gt; and &lt;code&gt;dash&lt;/code&gt;; it is not a separate Linux package to install. If you see &lt;code&gt;export: command not found&lt;/code&gt;, check that you entered the command at a shell prompt and that the expected shell is interpreting it. In Bash, &lt;code&gt;type export&lt;/code&gt; identifies it as a builtin.&lt;/p&gt;

&lt;p&gt;The practical rule is simple: assign a variable for use in the current shell; export it when future child processes need it. That small distinction explains many cases where a value appears in your terminal but not in the program you launch.&lt;/p&gt;

&lt;p&gt;I originally published a more detailed version of this guide on the &lt;a href="https://sshflow.com/blog/linux-export-command/" rel="noopener noreferrer"&gt;SSHFlow blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'm also building &lt;a href="https://sshflow.com/" rel="noopener noreferrer"&gt;SSHFlow&lt;/a&gt; — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
