Restrict root ssh access to a single IP under Raspbian / Debian / Ubuntu
Today I configured a new backup solution that required me to restrict root ssh access to a single IP for the root user.
Today I configured a new backup solution that required me to restrict root ssh access to a single IP for the root user.
Generate ssh key $> ssh-keygen Start ssh agent $> ssh-agent /bin/bash Add ssh key $> ssh-add ~/.ssh/id_rsa List all used ssh keys $> ssh-add -l Show public key $> cat ~/.ssh/id_rsa.pub Copy key to remote host via ssh $> ssh-copy-id -i id_rsa.pub ssh-user@host.domain If ssh-copy-id isn’t available on the respektive system, you can use the […]