Part 2: Connect to shared server (VPS) using SSH
If you don’t already have a key - generate a key pair locally:
$ ssh-keygen
I chose the default. Some suggests not to type a password if you are the only person to have root access to the local machine.
Next I copied key to remote shared server:
$ ssh-copy-id root@IP_address_of_VPS
The shell should prompt you to enter the password for the username of the VPS. I mixed root with user passwords thus had issue login in.
Still on the local machine, I ran:
$ ssh root@IP_address_of_VPS
The shell should prompted me to verify the fingerprint of the SSH key of the server.
The VPS provider I use sends the fingerprint via email when setting up the server. If you need to find out the SSH’s key fingerprint: https//yctct.com/ssh-show-fingerprint
If the key matches, type yes
.
You should see root@vps_username:~#
Security
Once I am sure SSH enabled, I disable log in via password and else by un-commenting the following line and setting them up to no
in /etc/ssh/sshd_config
.
PasswordAuthetification no
UsePam no
Make sure you use sudo vi
to edit /etc/ssh/sshd_config
.
When you are done, reload the SSH daemon:
systemctl reload sshd
Source: https://landchad.net/sshkeys/
✍✍✍✍✍✍✍✍✍✍✍✍✍✍
I do self-funded research and I'm writing a book.
> What's the book about?
About technologies and agency.
Meaning, technologies can foster agency. No doubt. But I am also asking:
Can usage of technologies give us a sense of empowerment while in fact undermining our abilities?
I posted a summary of the prologue on the homepage: https://yctct.com/
✍✍✍✍✍✍✍✍✍✍✍✍✍✍
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki