Home / Emergency Rescue / SSH & Remote Servers
Lesson 5 of 5

SSH & Remote Servers

Concept

SSH gives you a terminal on a remote server. Your VPS boxes use non-standard ports for security. Once connected, you can run any command as if you were sitting at that machine.
Your server access
# Connect to mesh VPS
ssh -p 64295 root@204.168.250.88
# Or use the alias
ssh node

# Connect to main VPS
ssh -p 64295 root@65.108.52.69

# Run a command without staying connected
ssh -p 64295 root@204.168.250.88 'docker ps'

# Copy a file TO the server
scp -P 64295 local_file.txt root@204.168.250.88:/opt/m3shd/

# Copy a file FROM the server
scp -P 64295 root@204.168.250.88:/opt/m3shd/data/mesh.db ./backup.db

What's happening

-p 64295 specifies the port (NOT the default 22 — your servers use 64295 for security, port 22 runs an Endlessh tarpit). scp copies files over SSH — note it uses capital -P for port.

Quick Check — 3 questions

1. Why use -p 64295 instead of the default port?

2. How do you run a single command on a remote server without opening a shell?

3. What's the difference between ssh -p and scp -P?