Add SSH Key to VPS server Linux server SSH setup #Cloud #security
Hosting links
Vultr $100 credit: [ Ссылка ]
DigitalOcean $200 credit: [ Ссылка ]
Contabo: [ Ссылка ]
OVH: [ Ссылка ]
Hetzner €20: [ Ссылка ]
Scalahosting self managed VPS: [ Ссылка ]
Scalahosting Managed VPS: [ Ссылка ]
This works for different Linux distros ranging from Debian, Ubuntu, Almalinux, RockyLinux and so on.
## Generate the SSH Key on local computer
Rename your folders from 'folderforkeys' and keys from 'mykeys' as needed.
Consider adding a keyphrase to protect your private key when generating it.
'''bash
# this creates a folder called, folderforkeys for storing your keys (rename it as needed),
mkdir -p ~/.ssh/folderforkeys
ssh-keygen -t ed25519 -f ~/.ssh/folderforkeys/mykeys -C "Keys for DO"
'''
## Add the public SSH key to your server
Replace with your server IP address and location of your key on your computer.
You will need to enter the password of the user
'''bash
ssh-copy-id -i ~/.ssh/folderforkeys/mykeys.pub root@ip-address-of-server
'''
## Disable passwordauthentication
To disable password authentication, there is a twist. So watch the vide above to set the right: 'PasswordAuthentication no'
Watch the video to disable Password authentication for your VPS. (recommended for security)
Timeline
00:32 Generate SSH Key on your local computer
02:23 Add public ssh key to server with ssh copy id
05:24 How to log in with your SSH key
06:50 Disable PasswordAuthentication in SSH config
Our services :
Bizanosa WordPress Support Service : [ Ссылка ]
Bizanosa VPS Support service : [ Ссылка ]
Please consider [ Ссылка ]
.
If this video was helpful to you, please consider supporting my channel : [ Ссылка ]
.
GET SOCIAL WITH ME:
FACEBOOK: [ Ссылка ]
INSTAGRAM: [ Ссылка ]
TWITTER: [ Ссылка ]
WEBSITE : [ Ссылка ]
![](https://i.ytimg.com/vi/r69n6tnA26E/maxresdefault.jpg)