惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
L
LangChain Blog
C
Check Point Blog
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
美团技术团队
博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
腾讯CDC
B
Blog
G
Google Developers Blog
The Cloudflare Blog
P
Proofpoint News Feed

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Battling the Ghost in the Server: A Tale of Rsync, Tildes...
Samuel Thuku · 2026-05-15 · via DEV Community

By 4:47 PM, all I wanted was one final win before shutting down my laptop: copy a few files from a remote shared server to my local machine. A task so simple it barely deserved a second thought.

Or so I believed.

What started as a routine rsync command quickly spiraled into a full-blown terminal drama featuring misleading error messages, hostile authentication policies, disappearing sessions, and a server banner that outright lied to my face. Every fix uncovered a new problem, every command felt like a puzzle, and the humble file transfer turned into an unexpected battle against a highly secured shared machine.

This is the story of how a “five-minute task” became an afternoon-long debugging thriller — and the exact commands, mistakes, and lessons that finally led to victory.

Today at the office, this "five-minute task" turned into an epic tech thriller. Here is the story of how a routine file transfer turned into a battle of wits against a shared machine, the commands that saved the day, and the valuable lessons learned along the way.


Step 1: The First Attempt (The False Start)

Armed with confidence, I opened my terminal. I knew the target IP address (192.168.1.6) and I knew my destination (the current directory, represented by a trusty dot .).

I confidently typed:

rsync -pvarh 192.168.1.6 .

Enter fullscreen mode Exit fullscreen mode

The Climax:

rsync: [sender] link_stat "/home/username/192.168.1.6" failed: No such file or directory

Enter fullscreen mode Exit fullscreen mode

The Lesson:

Terminal networks are literal. Because I forgot the username and the colon (:), rsync thought I was looking for a local folder named 192.168.1.6 inside my own home directory. Oops.


Step 2: Fighting the Authentication Loop

Alright, easy fix. I needed to tell rsync to use SSH to talk to the remote server. I added my username and the IP address.

But then, a new boss appeared: the corporate password policy.

Every time I made a slight typo in my password, the server completely dropped my connection instantly. No second chances. No "Please try again." Just a cold, hard termination.

To bypass this and force the terminal to let me try typing my password properly without dropping the session, I brought out the SSH options flag:

rsync -pvarh -e "ssh -o PubkeyAuthentication=no" username@192.168.1.6:~ .

Enter fullscreen mode Exit fullscreen mode

By telling rsync to ignore my local public keys, it forced a direct, clean password prompt.


Step 3: The Gaslighting Server Banner

I ran the command. The password prompt appeared. I carefully typed my password and hit Enter.

Suddenly, my screen flashed this aggressive warning:

════════════════════════════════════════
User does not exist or password incorrect
════════════════════════════════════════

Enter fullscreen mode Exit fullscreen mode

I panicked. Did I get locked out? Is my account deleted?

But wait... right underneath that scary banner, the terminal printed:

rsync: [sender] link_stat "/home/username/~" failed: No such file or directory

Enter fullscreen mode Exit fullscreen mode

The Plot Twist:

The password was correct! The server had logged me in successfully, but a custom corporate security banner was programmed to print that terrifying "incorrect password" message anyway just to confuse unauthorized guests (and exhausted sysadmins).

However, a new problem arose: rsync was looking for a literal folder named ~ instead of recognizing it as my home directory. On highly secure shared machines, the shell often blocks shortcut symbols like the tilde (~) from expanding.


Step 4: Sweet, Sweet Victory

With the final puzzle piece in place, I realized I had to stop using shortcuts and give the server exact, absolute paths. No more tildes.

I swapped ~ for the full, explicit path /home/username/ and ran the final command:

rsync -pvarh -e "ssh -o PubkeyAuthentication=no" username@192.168.1.6:/home/username/ .

Enter fullscreen mode Exit fullscreen mode

The Result:

The incremental file list loaded perfectly, the progress bars flew across the screen, and the files safely landed on my local machine. Success!


Key Takeaways for Your Next Server Battle

Colons Matter

Always use:

user@IP:/path

Enter fullscreen mode Exit fullscreen mode

for remote targets.

Without the colon, you are just talking to your own computer.


Beware of Banners

Don't trust every error message you read on a shared corporate server; look at the actual terminal output underneath the scary boxes.


Be Explicit

Shortcuts like ~ are great for local terminal work, but when automating or crossing servers, spell out the full path (like /home/username/) to avoid confusion.