Differences
This shows you the differences between the selected revisions of the page.
guide_digitalocean 2019-07-24 | guide_digitalocean 2022-06-24 (current) | ||
Line 1: | Line 1: | ||
- | ====== Connecting Securely to DigitalOcean Droplet with SFTP ====== | + | ====== Connecting securely to DigitalOcean droplet with SFTP ====== |
With WinSCP you can easily upload and manage files on your DigitalOcean droplet/server over [[sftp|SFTP protocol]]. | With WinSCP you can easily upload and manage files on your DigitalOcean droplet/server over [[sftp|SFTP protocol]]. | ||
Line 15: | Line 15: | ||
Easiest way to setup the public key authentication is directly when creating the droplet. | Easiest way to setup the public key authentication is directly when creating the droplet. | ||
- | * In PuTTYgen, copy the contents of //Public key for pasting to OpenSSH authorized_keys file// to the clipboard; | + | * In PuTTYgen, copy the contents of //Public key for pasting into OpenSSH authorized_keys file// to the clipboard; |
- | * In //Add %%SSH%% Keys// section of the //[[https://cloud.digitalocean.com/droplets/new|Create Droplet]]// form, click //Add %%SSH%% Key//; | + | * In //Authentication > %%SSH%% keys// section of the //[[https://cloud.digitalocean.com/droplets/new|Create Droplets]]// form, click //New %%SSH%% Key//; |
* Paste the public key fingerprint from clipboard; | * Paste the public key fingerprint from clipboard; | ||
* And confirm by clicking //Add %%SSH%% Key// button. | * And confirm by clicking //Add %%SSH%% Key// button. | ||
Line 22: | Line 22: | ||
If you want to add the key to your existing droplet: | If you want to add the key to your existing droplet: | ||
- | * [[https://www.digitalocean.com/docs/droplets/resources/console/|Connect to the droplet with the DigitalOcean console]]; | + | * Connect to the droplet with the [[https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/|SSH]] or [[https://docs.digitalocean.com/products/droplets/how-to/recovery/recovery-console/|DigitalOcean recovery console]]; |
* Follow instructions for [[guide_public_key#configure_openssh|setting up SSH public key authentication for OpenSSH servers]]. | * Follow instructions for [[guide_public_key#configure_openssh|setting up SSH public key authentication for OpenSSH servers]]. | ||
Line 31: | Line 31: | ||
* IP address: It is the dotted number in a format ''aaa.bbb.ccc.ddd'' below your droplet hostname on the droplet console panel. | * IP address: It is the dotted number in a format ''aaa.bbb.ccc.ddd'' below your droplet hostname on the droplet console panel. | ||
* Host key fingerprint: On the first connect you will be prompted to [[ssh_verifying_the_host_key|verify a server host key]]. While the DigitalOcean documentation suggests you can accept the droplet host key on the first connect without verifying it, to maintain maximum security, you should securely acquire a fingerprint of the host key: | * Host key fingerprint: On the first connect you will be prompted to [[ssh_verifying_the_host_key|verify a server host key]]. While the DigitalOcean documentation suggests you can accept the droplet host key on the first connect without verifying it, to maintain maximum security, you should securely acquire a fingerprint of the host key: | ||
- | * [[https://www.digitalocean.com/docs/droplets/how-to/connect-with-console/|Connect to the droplet with the DigitalOcean console]]; | + | * [[https://docs.digitalocean.com/products/droplets/how-to/recovery/recovery-console/|Connect to the droplet with the DigitalOcean recovery console]]; |
* Use the following commands to display fingerprints of the host keys: \\ <code> | * Use the following commands to display fingerprints of the host keys: \\ <code> | ||
root@droplet:~# ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub | root@droplet:~# ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub | ||
Line 56: | Line 56: | ||
===== Further reading ===== | ===== Further reading ===== | ||
- | * Guide to [[guide_upload|uploading files to SFTP server]]; | + | * [[guide_upload|*]]; |
- | * Guide to [[guide_automation|automating operations]] (including upload); | + | * [[guide_automation|*]]; |
- | * [[https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/|Official guide for connecting using SSH/PuTTY]]. | + | * [[https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/|Official guide for connecting using SSH/PuTTY]]. |