Ssh schnelleinstieg: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Installation= *apt-get install ssh =Config directory= /etc/ssh =Personal directory= ~/.ssh =Main Config File= Example *cat /etc/ssh/sshd <pre> Port 22 Host…“) |
|||
| Zeile 5: | Zeile 5: | ||
=Personal directory= | =Personal directory= | ||
~/.ssh | ~/.ssh | ||
| − | =Main Config File= | + | =Server= |
| + | ==Main Config File== | ||
Example | Example | ||
*cat /etc/ssh/sshd | *cat /etc/ssh/sshd | ||
| Zeile 22: | Zeile 23: | ||
PasswordAuthentication yes | PasswordAuthentication yes | ||
</pre> | </pre> | ||
| + | ==start,stop,restart,status== | ||
| + | *systemctl start ssh | ||
| + | *systemctl stop ssh | ||
| + | *systemctl status ssh | ||
| + | *systemctl restart ssh | ||
Version vom 21. November 2019, 20:56 Uhr
Installation
- apt-get install ssh
Config directory
/etc/ssh
Personal directory
~/.ssh
Server
Main Config File
Example
- cat /etc/ssh/sshd
Port 22 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key PermitRootLogin prohibit-password ChallengeResponseAuthentication no UsePAM yes X11Forwarding yes PrintMotd no AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server PasswordAuthentication yes
start,stop,restart,status
- systemctl start ssh
- systemctl stop ssh
- systemctl status ssh
- systemctl restart ssh