Ssh howto: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
 
(20 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 2: Zeile 2:
 
*[[ssh Verbindungsaufbau]]
 
*[[ssh Verbindungsaufbau]]
 
*[[ssh Clientseite]]
 
*[[ssh Clientseite]]
 +
*[[ssh misc]]
 
*[[ssh Serverseite]]
 
*[[ssh Serverseite]]
 +
*[[scp]]
 +
*[[rsync]]
 +
*[[ssh Jumphost]]
 +
*[[ssh Tunnel]]
 +
*[[ssh Socks Proxy]]
 +
*[[ssh VPN]]
 +
*[[ssh passwort auf key]]
 +
*[[ssh Algorythmen]]
 +
*[[ssh agent start]]
 +
*[[ssh host finger print]]
 +
=Authentifizierung mit Schlüssel=
 +
*[[SSH Agent]]
 +
*[[Authentifizierung mit Schlüssel]]
 +
*[[SSH-Agent Windows Powershell]]
  
==Serverseite==
+
*[[ssh Aufgaben]]
===SSH Server installieren===
 
root@alita:~# apt-get install openssh-server
 
...
 
 
====Konfigurationsdatei====
 
/etc/ssh/sshd_config
 
# What ports, IPs and protocols we listen for
 
Port 22 
 
                           
 
# Use these options to restrict which interfaces/protocols sshd will bind to
 
#ListenAddress ::                                                         
 
#ListenAddress 0.0.0.0                                                     
 
Protocol 2                                                                 
 
# HostKeys for protocol version 2                                         
 
HostKey /etc/ssh/ssh_host_rsa_key                                         
 
HostKey /etc/ssh/ssh_host_dsa_key                                         
 
#Privilege Separation is turned on for security                           
 
UsePrivilegeSeparation yes                                                 
 
 
# Lifetime and size of ephemeral version 1 server key
 
KeyRegenerationInterval 3600                       
 
ServerKeyBits 768                                   
 
...
 
  
Zusätzlichen Port zum Lauschen auf Anfragen hinzufügen
 
  
/etc/ssh/sshd_config
+
*https://stackoverflow.com/questions/18880024/start-ssh-agent-on-login
# What ports, IPs and protocols we listen for
 
Port 22 
 
'''Port 9998'''                           
 
# Use these options to restrict which interfaces/protocols sshd will bind to
 
#ListenAddress ::                                                         
 
#ListenAddress 0.0.0.0
 
  
===RSA Key Fingerprint anzeigen===
+
=Quellen=
root@alita:/etc/ssh# ssh-keygen -f /etc/ssh/ssh_host_rsa_key.pub -l
+
*https://hitech-blog.com/wp-content/2010/08/ssh_marco_costa.pdf
2048 8c:d1:1f:d2:5e:76:cd:75:74:c4:b7:b2:c7:f6:50:78 /etc/ssh/ssh_host_rsa_key.pub (RSA)
 

Aktuelle Version vom 22. Februar 2023, 13:13 Uhr