12ter Juni 2026, Daniel Schildt
benutzer@desktop
$ vi ~/.ssh/config
Host * ServerAliveInterval 60
$ chmod 600 ~/.ssh/config
$ scp ~/.ssh/id_rsa.pub <Benutzer>@<Internetprotokolladresse>:~
benutzer@server
$ mkdir ~/.ssh
$ chmod 700 ~/.ssh
$ cat id_rsa.pub >> ~/.ssh/authorized_keys
$ chmod 600 ~/.ssh/authorized_keys
$ rm id_rsa.pub
root@server
# vi /etc/ssh/sshd_config
+ PermitRootLogin no
+ PasswordAuthentication no
+ KbdInteractiveAuthentication no
+ UsePAM no
root
# /etc/rc.d/rc.sshd restart
# systemctl restart sshd
root
# cp /home/<Benutzer>/.ssh/id_rsa ~/.ssh