Ssh Clientseite: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 14: | Zeile 14: | ||
</pre> | </pre> | ||
:Der Publikkey des Server '''u3''' wurde hinzugefügt | :Der Publikkey des Server '''u3''' wurde hinzugefügt | ||
| − | = | + | =Befehl ausführen= |
:alice@u3:~$ ssh bob@u2 hostname | :alice@u3:~$ ssh bob@u2 hostname | ||
:bob@u2's password: | :bob@u2's password: | ||
u2 | u2 | ||
| + | |||
=alternativer Aufruf= | =alternativer Aufruf= | ||
:alice@u3:~$ ssh -l bob u2 | :alice@u3:~$ ssh -l bob u2 | ||
Version vom 8. November 2021, 08:50 Uhr
Erster Verbindungsaufbau
- alice@u3:~$ ssh bob@u2
The authenticity of host 'u2 (172.16.10.2)' can't be established. ECDSA key fingerprint is SHA256:Dp+DL5apc0A3rsUKCPcvbLSBmb4BSQXDsJGLJR0r0GA. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
- bob@u2's password:
- bob@u2:~$
Exit
- bob@u2:~$ exit
- alice@u3:~$ cat .ssh/known_hosts
|1|5BdpwWv6AjvkrERbWPK0NCdeWiY=|XEQyvQ0nw5bIIM7UHd6rbJwIA1A= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNmNwRv2mqfgV3SwvASy48CIjb4oSmxqcQf7e28dCYQxGRfIXiQK5HYKagkqsfBgai+iIiLKDrkav7tvqX0XsAQ= |1|m9IwDx96MLYRVu8WE49HjWRcdyk=|CVTp1yv65aqMW6Y1zWngj0j1oW8= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNmNwRv2mqfgV3SwvASy48CIjb4oSmxqcQf7e28dCYQxGRfIXiQK5HYKagkqsfBgai+iIiLKDrkav7tvqX0XsAQ=
- Der Publikkey des Server u3 wurde hinzugefügt
Befehl ausführen
- alice@u3:~$ ssh bob@u2 hostname
- bob@u2's password:
u2
alternativer Aufruf
- alice@u3:~$ ssh -l bob u2
- bob@u2's password:
- bob@u2:~$
Angabe eines speziellen Ports
- alice@u3:~$ ssh -p 8822 -l bob u2
- bob@u2's password:
- bob@u2:~$
Schlüsselpaar erzeugen
- alice@u3
- ~$ ssh-keygen -b 4096
Generating public/private rsa key pair. Enter file in which to save the key (/home/alice/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/alice/.ssh/id_rsa Your public key has been saved in /home/alice/.ssh/id_rsa.pub The key fingerprint is: SHA256:PrjyG7hdgYyB8o3G6AylcbWvmPjjJr29l4yGS7uAR44 alice@u3 The key's randomart image is: +---[RSA 4096]----+ | . | | o . | |o + o | | X o = . | |+ * o + S | |=* o o o . | |E+*.ooo.+ | |.==o+o++ . | | +B*+==. | +----[SHA256]-----+