Benutzer-Werkzeuge

Webseiten-Werkzeuge


knowledge_base:linux:ssh

Dies ist eine alte Version des Dokuments!


Inhaltsverzeichnis

SSH

Debian

mkdir ~/.ssh
cd ~/.ssh
wget https://raw.githubusercontent.com/JM-Lemmi/JM-Lemmi/main/authorized_keys
/etc/ssh/sshd_config
Port 22
#Port 22222

PermitRootLogin Prohibit-Password

PasswordAuthentication no
ChallengeResponseAuthentication no

#Match Address 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
#    PasswordAuthentication yes

allow root pw login

from here.

/etc/ssh/sshd_config
PermitRootLogin yes

Pubkeyauth

from https://linuxhandbook.com/add-ssh-public-key-to-server/

add key to root/.ssh/authorized_keys oder /home/user/.ssh/authorized_keys

Settings for only Pubkey auth:

/etc/ssh/sshd_config
PubkeyAuthentication yes
PasswordAuthentication no

password has to be explicitely disabled

See also

/app/www/public/data/attic/knowledge_base/linux/ssh.1676841370.txt.gz · Zuletzt geändert: 2023/02/19 22:16 von julian.lemmerich