Before you begin
Your key is on your site (see Add or remove an SSH key).
Steps
- Open Terminal.
- Copy the Connect line from the SSH & SFTP tab, for example
ssh -p 7822 login@db.my.se7enx.com, paste it and press Enter. - The first time, compare the fingerprint with the one on the tab and type
yes. - Type your key's passphrase if you set one.
- You are on the server:
cd httpdocstakes you to your website. Typeexitto leave.
Result
You are signed in over SSH.
What to do next
Save typing with an entry in ~/.ssh/config:
Host mysite
HostName db.my.se7enx.com
Port 7822
User login
IdentityFile ~/.ssh/id_ed25519Then ssh mysite is enough.
Copy files with sftp -P 7822 login@db.my.se7enx.com (commands put, get, ls, cd), or with scp -P 7822 file.zip login@db.my.se7enx.com:httpdocs/. Note the capital -P for sftp and scp.
Related articles
- SSH and SFTP on 7x servers What SSH and SFTP are, why the 7x servers only accept SSH keys, and the details you need to connect.
- SFTP on a Mac: Finder and file apps How to reach your site's files from a Mac: the Finder needs a helper for SFTP, and Cyberduck, Mountain Duck, Transmit, ForkLift and Commander One connect directly.
- SSH or SFTP does not connect What "Permission denied (publickey)", a timeout or a changed fingerprint mean, and how to fix them.