idealkmfk.blogg.se

Digital ocean filezilla windows ssh
Digital ocean filezilla windows ssh








digital ocean filezilla windows ssh

When you change this value, you will need to keep in mind that your server is running on the new port.Īs an example if you change this to 4444. Edit the config file nano /etc/ssh/sshd_configĬhange SSH Port value from Port 22 to something in between 106 Secure our server a little bit by modifying its SSH configuration. Now you can SSH login as your new user, using the private key as authentication. Restrict the permissions of the authorized_keys file with this command: chmod 600. Hit CTRL-X to exit the file, then Y to save the changes made, then ENTER to confirm the file name. Insert your public key from your clipboard by pasting it into the editor. ssh called authorized_keys with a text editor. Now log back in to the server as root ssh the following command to switch to the new user (substitute your own user): su - stevenĬreate a new directory called.

digital ocean filezilla windows ssh

On your local machine get your ssh key and copy it to the clipboard cat ~/.ssh/id_rsa.pub Type exit to get out of your remote session Now your user can run commands with sudo super user privileges! ssh Server setupĬreate a new user so you are not logging in with the root user, instead of steven, add your own name adduser stevenĪdd "super user" or root privileges for our new account. Now click Create Droplet to add your droplet Connect to your DropletĬonnect via SSH from Terminal as follows, and if your SSH key is setup on your PC you should be logged in. On the Image/Applications tab select any applications you want setup by default, like node. Select you region, and distribution, I went with Ubuntu and New York. Select your Droplet Hostname, Select your size, $5 or $10 a month plans are probably best if you are just using this for development projects. Now click on the Create Droplet tab and fill out the fields for your droplet Make a backup of your SSH key on your external hard drive etc. Click on the SSH Keys tab, then click Add SSH KeyĬreate the key in OpenSSH in Mac OSX or Linux, or using Putty for Windows.Ĭopy the ssh key and add it into Digital Ocean and give it a name.










Digital ocean filezilla windows ssh