SSH (short for Secure SHell) is the bread-and-butter tool to connect securely to a remote computer. The syntax is:
ssh user@host_addresss
For a DigitalOcean droplet, your user will be root (the
Linux admin), and the address will be the IP address of the droplet:
ssh [email protected]
If you have a domain, you will use that domain:
ssh [email protected]
The syntax for scp (short for Secure CoPy) is:
scp <source> <target>
where source & target are specific directories on specific hosts. Local files are treated normally, remot files and folders should be specificed using the syntax:
user@host_address:/path/to/source/file
Note the colon between the host address and the path.
The addresses should be relative to where you are running the command. This command can push or pull data, and so can be used wherever is most convenient.
Coming soon
Once you have your ssh key generated, you can use:
ssh-copy-id [email protected]
to copy your ID over. It will prompt you for your password, and then place the appropriate signature on the remote host for passwordless login.