Linux: Unterschied zwischen den Versionen
Stefan (Diskussion | Beiträge) |
Stefan (Diskussion | Beiträge) (→SSH Server) |
||
Zeile 83: | Zeile 83: | ||
http://www.tim-bormann.de/tutorial-installation-debian-linux-ssh-server/ | http://www.tim-bormann.de/tutorial-installation-debian-linux-ssh-server/ | ||
apt-get install openssh-server | apt-get install openssh-server | ||
− | service ssh | + | service ssh status |
− | /etc/ssh/sshd_config | + | nano /etc/ssh/sshd_config |
PermitRootLogin without-password | PermitRootLogin without-password | ||
PermitRootLogin yes | PermitRootLogin yes | ||
Zeile 94: | Zeile 94: | ||
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config | sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config | ||
+ | |||
+ | sed -i 's/PermitRootLogin no/PermitRootLogin without-password/g' /etc/ssh/sshd_config | ||
+ | |||
service ssh restart | service ssh restart | ||
Version vom 22. Februar 2020, 14:22 Uhr
Willkommen auf unserer Linux Wiki Seite
Inhaltsverzeichnis
UnixWitch Spickzettel
https://www.unixwitch.de/de/sysadmin/tools
Script/Datei ausführen oder ausführbar machen
https://www.elektronik-kompendium.de/sites/raspberry-pi/2006091.htm
net-tools
apt-get install net-tools
https://wiki.linuxfoundation.org/networking/net-tools
arp ip neigh ifconfig ip addr ipmaddr ip maddr iptunnel ip tunnel route ip route nameif ifrename mii-tool ethtool
sudo installieren
apt-get install sudo
dirmngr installieren
apt-get install dirmngr
Version Linux
uname -a
Datum setzen mit Puty
date
date 070810002013.00 mmddhhmmyyyy.ss
Systemzeit
http://wiki.ubuntuusers.de/Systemzeit
Die wichtigsten Linux-Befehle
ls Dateien auflisten ls-l bzw. ls-lh Dateien übersichtlich inkl. Zugriffsrechten auflisten cat datei Inhalt einer Textdatei zeigen startx grafische Oberfläche starten shutdown-h now Raspberry Pi herunterfahren (-h = halt) shutdown-r now Raspberry Pi neu starten (-r = restart) cd xyz in Verzeichnis xyz wechseln cd .. ein Verzeichnis höher mkdir xyz Verzeichnis erstellen (make directory) rmdir xyz Verzeichnis löschen (remove directory) touch datei Datei erzeugen nano datei Datei editieren (im Editor: Strg-o für Speichern Strg-x für Exit) rm datei Datei löschen pwd aktuelles Verzeichnis (print current workingdir), z. B. /home/pi whoami aktuellen Benutzernamen anzeigen, z. B. pi date Datum und Uhrzeit anzeigen chmod Zugriffsrechte ändern, z. B. chmod 644 testdatei.txt ifconfig IP-Adresse usw. anzeigen whatis befehl Grobbeschreibung von befehl, z. B. whatis ls man befehl ausführliche Beschreibung von befehl, z. B. man ls df / -h Speicherkartengröße anzeigen lsusb angeschlossene USB-Geräte anzeigen
Problem apt-get
CDRom
Yes, you can remove the CD-ROM (or or original installation media) from the sources.list Edit the sources.list file with the following command: sudo nano /etc/apt/sources.list
NetCup
https://www.netcup.de
https://www.servercontrolpanel.de/SCP https://ccp.netcup.net/run/start.php
apt-key adv --keyserver pool.sks-keyservers.net --recv-key FD88018B6F2D5390D051343FF6B4A8704F9E9BBC
SSH Server
http://www.tim-bormann.de/tutorial-installation-debian-linux-ssh-server/ apt-get install openssh-server service ssh status
nano /etc/ssh/sshd_config PermitRootLogin without-password PermitRootLogin yes
PasswordAuthentication yes
sudo passwd
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin no/PermitRootLogin without-password/g' /etc/ssh/sshd_config
service ssh restart
SSL Webmin
https://www.ericluwj.com/2017/02/23/install-free-lets-encrypt-ssl-certificate-in-webmin.html
Deutsches Tastatur Layout
sudo apt-get install console-data sudo loadkeys de