Skip to content

📑 Working with files via SCP

SCP is a secure way to transfer files over SSH. You’ll need:

  • The server’s IP address (found in AHOST panel → Main Information → IPv4 → Address).
  • Username and password (sent by email after server creation or set manually).

Linux

Upload a file to the server:

scp /path/to/file root@<IP>:/path/on/server

Example:

scp /home/user/archive.tar.gz [root@83.XXX.XXX.XXX]():/root/

Download a file from the server:

scp root@<IP>:/path/to/file /path/on/local/machine

Example:

scp [root@83.XXX.XXX.XXX]():/root/archive.tar.gz /home/user/Downloads/

Transfer a directory:

scp -r /path/to/folder root@<IP>:/path/on/server

Tips:

  • Use SSH keys for frequent connections.
  • Ensure port 22 is open if connection fails.

Windows (using WinSCP)

1. Installation: Download and install WinSCP from winscp.net.

2. Connection setup:

  • File protocol: SCP
  • Host name: server IP
  • Port number: 22
  • User name: root
  • Password: your password Click Login and confirm the server key when prompted.

3. File transfer:

  • Left panel — your computer, right panel — server.
  • Drag and drop files between panels to upload or download.

4. Disconnecting: Close the window or choose Session → Disconnect.