Contents
SSH gives you a terminal on the server: you can run Git, Composer, npm or Python, read logs, and move files far faster than through a browser. The connection is encrypted end to end, and with keys you don’t send a password at all.
Before you start
- A hosting plan that includes SSH. On ArabyHost, that means the AI/Developer plans.
- Your SSH username and host, plus the port if it isn’t 22. The panel shows all three on its SSH page.
- A terminal: PowerShell or Windows Terminal on Windows 10/11, Terminal on macOS, any terminal on Linux.
1. Create an SSH key on your computer
ssh-keygen -t ed25519 -C "laptop"
Press Enter to accept the default location (~/.ssh/id_ed25519), then choose a passphrase. You now have two files:
id_ed25519: the private key. It never leaves your computer.id_ed25519.pub: the public key, which you give to the server.
Print the public key so you can copy it:
cat ~/.ssh/id_ed25519.pub # macOS / Linux
type $env:USERPROFILE\.ssh\id_ed25519.pub # Windows PowerShell
It’s a single line that starts with ssh-ed25519.
2. Add the public key to your hosting
In the Araby Panel: open your service, then Site tools → SSH. Under Import a public key, enter a key name such as laptop, paste the line, keep Let this key sign in right away ticked and click Import key.
In cPanel: open Security → SSH Access → Manage SSH Keys → Import Key, paste the public key and click Import. Then go back to the key list and click Manage → Authorize. An imported key doesn’t work until it’s authorized.
Never paste the private key anywhere. If a form warns that it’s a private key, you copied the wrong file.
3. Connect
ssh myuser@your-host
Add -p and a port number only if your host uses a port other than 22. On the first connection you’ll see the server’s fingerprint and the question Are you sure you want to continue connecting (yes/no)?. Type yes: the fingerprint is saved in ~/.ssh/known_hosts and checked on every later connection.
4. Save a shortcut in ~/.ssh/config
Instead of typing the whole address each time, add this to ~/.ssh/config (create the file if it doesn’t exist):
Host myhosting
HostName your-host
User myuser
Port 22
IdentityFile ~/.ssh/id_ed25519
Now ssh myhosting is enough. VS Code, the Claude desktop app, the Codex app, rsync and Git all read the same file, so they can use the same name.
5. Your first commands
pwd # where you are: your home folder
ls -la public_html # the site's files
tail -n 50 public_html/error_log # latest PHP errors
du -sh ~/* | sort -h # what uses your disk space
exit # disconnect
6. Copy files over SSH
scp site.zip myhosting:~/ # one file to your home folder
rsync -avz ./dist/ myhosting:~/public_html/ # sync a whole folder
Prefer a graphical client? Use SFTP in FileZilla or WinSCP with the same host, user and key. See SFTP.
7. Edit files in VS Code over SSH (optional)
Install the Remote - SSH extension in VS Code, press F1, run Remote-SSH: Connect to Host… and pick myhosting. VS Code opens a window connected to the server: the file tree, editor and terminal all work on the server’s files, so there’s nothing to upload after each edit.
Troubleshooting
Permission denied (publickey): the key isn’t authorized, the username is wrong, or SSH offers a different key. Runssh -v myhostingto see which key is tried. Details in Permission denied (publickey).Connection refusedor a timeout: wrong host or port, a plan without SSH, or your IP was blocked after repeated failed sign-ins. See SSH connection refused.REMOTE HOST IDENTIFICATION HAS CHANGED/Host key verification failed: the saved fingerprint no longer matches, for example after a server move. Confirm the change with support first, then runssh-keygen -R your-host.UNPROTECTED PRIVATE KEY FILE: on macOS or Linux, runchmod 600 ~/.ssh/id_ed25519.- PuTTY rejects the key: convert it in PuTTYgen with Conversions → Import key, then save it as
.ppk.
Security habits
- Use one key per device and name it after the device, so a lost laptop means removing just one key.
- Remove or deauthorize keys you no longer use.
- Keep a passphrase on personal keys and let ssh-agent remember it for the session (more on SSH keys).
On ArabyHost
SSH comes with the AI/Developer plans. Each account gets a shell jailed in CloudLinux CageFS, so you see only your own files, with dedicated resource limits. Sign-in uses SSH keys that you manage from Site tools → SSH in the Araby Panel, and the panel shows the exact host, user and port. Node.js 20 and 24, Python 3.9-3.12, PHP 8.1-8.3, Git and Composer are ready to use; there’s no root access or Docker, so system packages can’t be installed. Other plans don’t include SSH: use File Manager or upload a ZIP instead.
FAQ
Do I need PuTTY on Windows?
No. Windows 10 and 11 include OpenSSH, so `ssh` and `ssh-keygen` work in PowerShell or Windows Terminal. PuTTY still works, but it needs the private key converted to `.ppk` format with PuTTYgen.
Can I use sudo or install system packages over SSH on hosting?
No. Shared and developer hosting give you a shell limited to your own account, without root or sudo. You can still install tools inside your home folder with npm, pip or Composer.
Should I protect my SSH key with a passphrase?
Yes, for keys on your own computer. If the key file is ever copied, the passphrase keeps it useless, and ssh-agent means you type it only once per session. Automated deploys should use a separate key made only for that job.