<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2026-10-16T11:38:54Z</updated>
  <generator>https://njump.me</generator>

  <title>Nostr notes by CodeNotes · aneeshdurg.me</title>
  <author>
    <name>CodeNotes · aneeshdurg.me</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://njump.me/npub1jqs85y9x9s7se94fuggq0lfdpjp0pxptr44k25qqvtsd60k8umdq7qquhc.rss" />
  <link href="https://njump.me/npub1jqs85y9x9s7se94fuggq0lfdpjp0pxptr44k25qqvtsd60k8umdq7qquhc" />
  <id>https://njump.me/npub1jqs85y9x9s7se94fuggq0lfdpjp0pxptr44k25qqvtsd60k8umdq7qquhc</id>
  <icon>https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f439.png</icon>
  <logo>https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f439.png</logo>




  <entry>
    <id>https://njump.me/nevent1qqsde9z8fvjnqdqj55xfxhd48gk5uaxvssnfvhhm9hj0kfsz5wacttszyzgzq7ss5ckr6ryk483pqpla95xg9uyc9vwkke2sqp3wphf7clnd5nvrt9x</id>
    
      <title type="html">My SSH Setup Lately I’ve been heavily using two tricks that ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsde9z8fvjnqdqj55xfxhd48gk5uaxvssnfvhhm9hj0kfsz5wacttszyzgzq7ss5ckr6ryk483pqpla95xg9uyc9vwkke2sqp3wphf7clnd5nvrt9x" />
    <content type="html">
      My SSH Setup&lt;br/&gt;&lt;br/&gt;Lately I’ve been heavily using two tricks that have really improved my SSH’ing&lt;br/&gt;experience: reverse port forwarding and a fileserver.&lt;br/&gt;I do all of my work over ssh, and often find myself wishing that I could reach&lt;br/&gt;from the ssh server through the client and pull files off of the host. Turns out&lt;br/&gt;that’s relatively easy to accomplish.&lt;br/&gt;I set up sshd on the client, and only allowed logins from localhost and key-based auth (probably overkill, but whatever).&lt;br/&gt;Then when I ssh to the server, I add -R 22022:localhost:22, which forwards the client port localhost:22 to the server’s port 22022.&lt;br/&gt;Then I copied the server’s public key and put it in my ~/.ssh/authorized_keys.&lt;br/&gt;Now, from the server, I can do ssh localhost -p 22022 and get into the client, or use scp to have server initiated transfer of client files.&lt;br/&gt;The other thing I often want is the ability to view files from the server&lt;br/&gt;graphically on the client.&lt;br/&gt;x-forwarding exists, but is painfully slow.&lt;br/&gt;So, instead I use filebrowser quantum running on port 8000 serving everything under my home directory ONLY on 127.0.0.1.&lt;br/&gt;This is the full config I use.&lt;br/&gt;http:&lt;br/&gt;port: 8000&lt;br/&gt;baseURL: &amp;#34;/&amp;#34;&lt;br/&gt;listen: &amp;#34;127.0.0.1&amp;#34;&lt;br/&gt;server:&lt;br/&gt;sources:&lt;br/&gt;- path: &amp;#34;/home/aneesh&amp;#34;&lt;br/&gt;config:&lt;br/&gt;defaultEnabled: true&lt;br/&gt;auth:&lt;br/&gt;methods:&lt;br/&gt;noauth: true&lt;br/&gt;frontend:&lt;br/&gt;name: &amp;#34;Earth Files&amp;#34;&lt;br/&gt;Then, when I ssh from the client, I can specify -L 8000:localhost:8000 to be able to navigate and view server files through the client’s webbrowser.&lt;br/&gt;To cope with my muscle memory of using xdg-open to open files, I have the&lt;br/&gt;following fish snippet in my config:&lt;br/&gt;if set -q SSH_CLIENT&lt;br/&gt;function xdg-open&lt;br/&gt;set -l cmd&lt;br/&gt;for arg in $argv&lt;br/&gt;set -l path (realpath --relative-to ~ $arg)&lt;br/&gt;set cmd $cmd &amp;#34;DISPLAY=:0 firefox localhost:8000/files/aneesh/$path;&amp;#34;&lt;br/&gt;end&lt;br/&gt;ssh localhost -p 22022 -t &amp;#34;$cmd&amp;#34;&lt;br/&gt;end&lt;br/&gt;end&lt;br/&gt;which opens up new tabs in firefox pointed at the files I wanted to look at.&lt;br/&gt;Bonus: The alias I normally use to ssh to the server also has -t &amp;#34;tmux a || tmux&amp;#34; which automatically attaches to my last tmux session or creates a new one, solving the problem of ssh’ing in, running a long interactive command and then kicking yourself for not doing it in tmux when you want to disconnect.&lt;br/&gt;&lt;br/&gt;&lt;a href=&#34;https://aneeshdurg.github.io/posts/2026/10/26-myssh/&#34;&gt;https://aneeshdurg.github.io/posts/2026/10/26-myssh/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#rss #feeds #linksharing #qwibbit
    </content>
    <updated>2026-10-27T02:55:16Z</updated>
  </entry>

</feed>