SSH, the Secure Shell
Prsent Par : Seddik DAYA Khalid BENAYAD Abdessamad CHBICHEB Didi WELDELMOUSTAPHA
PLAN :
1. Introduction SSH
Cest quoi SSH Protocole SSH Les applications SSH Les technologies lies
2. Configuration client/serveur sur CentOS 6.4
Partie 1 :
tape 1 : Installation et lancement du service
tape 2 : Authentification client/serveur
Introduction SSH
Cest quoi SSH Protocole Applications Technologies lies
Introduction SSH
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
tape 2 : SSH Authentification
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
Terminologies :
Protocoles sont dnots avec dashes et en majuscules: SSH-1, SSH-2. Produits sont dnots en majuscule, sans dashes: SSH1, SSH2, OpenSSH, etc. Programmes client sont dnots en miniscules : ssh, ssh1, ssh2, etc.
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
Qu est ce que SSH peut faire :
Secure Remote Logins, Secure File Transfer,
Secure Remote Command Execution,
#!/bin/sh for machine in daya chbicheb benayad didi do rsh $machine /usr/ucb/w ssh done
This is a shell script. On each of these four machines in turn... invoke /usr/ucb ssh lathe place de rsh/w program, which
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
Qu est ce que SSH peut faire :
Secure Remote Logins, Secure File Transfer,
Secure Remote Command Execution,
Keys and Agents, Access contrle, Port Forwarding
Cest quoi SSH Protocole Applications
Technologies lies
Introduction SSH
Protocol
Features Pretty good Privacy (PGP)
Firewalls Secure Remote Password (SRP) SSL Kerberos Radius TACACS+ (CISCO)
IPSec
SSH rsh (r-command) Encryption Authentification Remote Access Inegrity Monitoring
Cest quoi SSH Protocole Applications Introduction SSH
Technologies lies
Mise en place dun serveur SSH avec OpenSSH sur CentOS 6.4 :
Partie 1:
Etape 1 : Packages et lancement
Etape 2 : Authentification SSH
SSH : Setup
1 : Paquets dinstallation
openssh-askpass Openssh-clients Openssh Openssh-server service sshd start
/X11 passphrase /ssh, slogin, ssh-add, sftp /ssh-keygen, scp /sshd
2 : Lancement de service
3 : Vrification du Lancement de service
ps ef | grep sshd
netstat nat | grep 22
4 : enregistrement des niveaux dexecution chkconfig sshd on 5 : Test
ssh username@ssh-server
tape 1 Partie1 Partie 2
1 : Authentification serveur
ssh_host_rsa_key & ssh_host_rsa_key.pub ssh_host_dsa_key & ssh_host_dsa_key.pub ~/.ssh/known_hosts ssh vvvv username@ssh-server
2 : Authentification client
Cl public
tape 2 : SSH Authentification Partie1 Partie 2
1 : Configuration serveur
#cd /etc/ssh -> nano sshd_config [ port 22, protocol 2,,,]
RSAAuthentication yes
PubKeyAuthentication yes AutorizedKeysFile .ssh/autorized_keys #service sshd restart
Test avec user local : crer .ssh -> modifier les droits
2 : Configuration client
crer .ssh -> modifier les droits #ssh-keygen t rsa(dsa) b 1024 #scp .ssh/id_rsa.pub user@server:.ssh/autorized_keys #ssh username@ssh-server 3 : Ajouter les cls #eval $(ssh-agent) or ssh-agent bash #ssh-add
#ssh vvvv user@ssh-server / pour changer les infos sur le protocole, algorithm, etc
tape 2 : SSH Authentification Partie1 Partie 2