Ssh schnelleinstieg: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 1: | Zeile 1: | ||
| − | =Installation= | + | =Server= |
| + | ==Installation== | ||
*apt-get install ssh | *apt-get install ssh | ||
| − | =Config directory= | + | ==Config directory== |
/etc/ssh | /etc/ssh | ||
| − | |||
| − | |||
| − | |||
==Main Config File== | ==Main Config File== | ||
Example | Example | ||
| Zeile 28: | Zeile 26: | ||
*systemctl status ssh | *systemctl status ssh | ||
*systemctl restart ssh | *systemctl restart ssh | ||
| + | =Client= | ||
| + | ==Config directory== | ||
| + | /etc/ssh | ||
| + | ==Personal directory== | ||
| + | ~/.ssh | ||
| + | ==remote login== | ||
| + | *ssh harald@rechner | ||
| + | *ssh -l harald rechner | ||
| + | *ssh -p 22 -l harald rechner | ||
| + | ==execute remote program== | ||
| + | *ssh harald@rechner date | ||
| + | *ssh harald@rechner pwd | ||
| + | *ssh harald@rechner ls -l | ||
Version vom 21. November 2019, 21:00 Uhr
Server
Installation
- apt-get install ssh
Config directory
/etc/ssh
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
Client
Config directory
/etc/ssh
Personal directory
~/.ssh
remote login
- ssh harald@rechner
- ssh -l harald rechner
- ssh -p 22 -l harald rechner
execute remote program
- ssh harald@rechner date
- ssh harald@rechner pwd
- ssh harald@rechner ls -l