DEV Community

Cover image for 12.Secure Data Transfer
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

12.Secure Data Transfer

Lab Information

A Nautilus developer has stored confidential data on the jump host within Stratos DC. To ensure security and compliance, this data must be transferred to one of the app servers. Given developers lack direct access to these servers, the system admin team has been enlisted for assistance.

Copy /tmp/nautilus.txt.gpg file from jump server to App Server 2 placing it in the directory /home/data.

Lab Solutions

🧭 Part 1: Lab Step-by-Step Guidelines
🎯 Source & Destination

🔹 Step 1: Log in to Jump Host
ssh thor@jump_host.stratos.xfusioncorp.com

Password:

mjolnir123

🔹 Step 2: Verify file exists on Jump Host

ls -l /tmp/nautilus.txt.gpg
Enter fullscreen mode Exit fullscreen mode

🔹 Step 3: Copy file to App Server 2

Run this from the jump host:

scp /tmp/nautilus.txt.gpg steve@stapp02.stratos.xfusioncorp.com:/home/data/
Enter fullscreen mode Exit fullscreen mode

Enter password:

Am3ric@

🔹 Step 4: Verify on App Server 2

SSH into App Server 2:

ssh steve@stapp02.stratos.xfusioncorp.com

# Then verify:

ls -l /home/data/nautilus.txt.gpg
Enter fullscreen mode Exit fullscreen mode

✅ Final Checklist

✔ File copied from Jump Host
✔ Destination: App Server 2
✔ Placed inside /home/data
✔ Filename unchanged
✔ Verified successfully


🧠 Part 2: Simple Step-by-Step Explanation (Beginner Friendly)

🔹 What is happening?

A developer stored an encrypted file here:

/tmp/nautilus.txt.gpg

on the jump host.

But developers cannot directly access app servers.

So we must transfer the file manually.

🔹 Why use scp?

scp stands for:

Secure Copy (over SSH)

It allows you to copy files between servers securely.

🔹 Breaking down the command

scp source destination

In this case:

scp /tmp/nautilus.txt.gpg steve@stapp02.stratos.xfusioncorp.com:/home/data/
Part Meaning
/tmp/nautilus.txt.gpg Source file
steve@stapp02... Destination server
/home/data/ Destination directory

🔹 Important Note

The file must be placed exactly inside:

/home/data

Not /home/steve/
Not /tmp
Not /root

Lab checkers are strict about exact path.

🔐 Real-World Context

This simulates:

Secure transfer of encrypted data

Administrative mediation between restricted servers

Controlled file movement within enterprise environments


Resources & Next Steps
📦 Full Code Repository: KodeKloud Learning Labs
📖 More Deep Dives: Whispering Cloud Insights - Read other technical articles
💬 Join Discussion: DEV Community - Share your thoughts and questions
💼 Let's Connect: LinkedIn - I'd love to connect with you

Credits
• All labs are from: KodeKloud
• I sincerely appreciate your provision of these valuable resources.

Top comments (0)