Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you for the post!
However, section about manual copy of the newly generated SSH key is redundant — there is much more efficient way. On your host type:
where <server> is your server’s IP. It will do the rest by itself helping to avoid the hustle. Also it is less error-prone as the user doesn’t have to create directories, set correct permissions and even put the key into clipboard.
Also I wouldn’t recommend remapping the default SSH port as it degrades interoperability and doesn’t add much security (it’s still easy to use nmap to find the new SSH port and continue attempts to login with guessed password).
Much better solution would be: set up public key authentication and completely disable password authentication. It is done similarly to restricting the root login:
edit nano /etc/ssh/sshd_config and set:
This will eliminate brute force attacks without remapping SSH default port.
This comment has been deleted
I’m kind of confused. Where is the part about creating the .ppk file to have on your computer to match up with the key on the server? This is my first time using Debian 8 and tutorials are harder to come by, but in every other distro I’ve used you have to have the .ppk somewhere…
Also, at the beginning we did apt-get update but then never proceeded to do apt-get upgrade. From my understanding (which trust me, is limited) I thought apt-get update downlads the updates but then you have to do apt-get upgrade to actually install the updates?
Thanks for beautiful job here! Which ports values can I use? I can create any value? eg 54876 or 42976 or 38469 etc … use my imagination?
I created a crazy door and can log ssh -p NUM_PORT my_user @ my_ip_vps this because they are accessible and yet did nothing in server … I shall not have problems with applications? so to use wordpress
Thanks Manicas! you help me too … I already use a different ssh port of standards, have disabled access with root User and changed permissions 700 ~ / .ssh and and 600 to key_file many others things follow their tutorials and am very happy with my super safe wordpress, I used all the safety guidelines found here in the community. ssh use and with different port between 1024 and 54000 is the q values used in my project, and that’s ok, we specify yes she with ssh -p MyPort myuser@ myserver and always everything ok in the fast inputs and without login with password … practical and happy … but still asked the question because it could have a future problem in using a door any randomly chosen by my imagination … use 5 digits on my door … but now that I know there are no problems, since so well tranquil . THANK YOU AGAIN! success for you.
Great tutorial. Worked like a charm.
I’m guessing most people that would be attempting this would already know this but just in case…
ssh-copy-id doesn’t ship with OSX but if you have Homebrew installed (you should, or equivalent package management software, if not you probably shouldn’t be attempting this), you can install it with:
brew install ssh-copy-id
Hi. Thank you for the awesome tutorial. It helped beautifully. The only part that didn’t work for me was Step Five and turning off root ssh access.
I added PermitRootLogin no to my sshd_config file (it was not there before with a yes value) and restarted ssh but that didn’t prevent root ssh access.
I noticed in my sshd_config file there is a section that states:
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin yes
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
Any ideas how to turn off root ssh with PAM?
systemctl restart ssh
did not work for me , but this did
/etc/init.d/ssh restart
Hi everyone,
This would be great if you have time to give back comment about a set-up script I just wrote: https://github.com/MattDelac/set_up_security_server/
All comments are welcome Thanks