fr:tools:sshpass
Table des matières
Sshpass
Alarme de Sécurité Sshpass permet de contourner la sécurité mise en place dans les outils SSH qui supportent
- une authentification interactive ou il faut entrer le mot de passe
- une authentification par certificat où il n'y a pas besoin de mettre un mot de passe
A utiliser en connaissance de cause et préférez l'authentification par certificats !
Installation sur OS X
Avec Homebrew
Prérequis Homebrew
brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
Contenu fichier sshpass.rb au 11.10.2015
require 'formula' class Sshpass < Formula url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz' homepage 'http://sourceforge.net/projects/sshpass' sha256 'c3f78752a68a0c3f62efb3332cceea0c8a1f04f7cf6b46e00ec0c3000bc8483e' def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end def test system "sshpass" end end
Command
Example avec ssh:
sshpass -p myPassword ssh -o StrictHostKeyChecking=no username@server.example.com
Example avec rsync:
rsync --rsh="sshpass -p myPassword ssh -o StrictHostKeyChecking=no -l username" server.example.com:/var/www/html/ /backup/
Infobox
- name:
- Sshpass
- page:
- Sshpass
- main class:
- Software
- network class:
- Communication, Network
- security class:
- Cryptography, Security
- system class:
- Operating system, System
- genre:
- Communication, Network, Cryptography, Security, Operating system, System
- description:
- Add password to ssh (Non-interactive ssh password auth)
- status:
- Active
- programming language:
- Other
- platforms:
- i386, x86_64
- website:
- https://sourceforge.net/projects/sshpass/
- license:
- GNU General Public License version 2.0 (GPLv2)
fr/tools/sshpass.txt · Dernière modification : 2021/07/12 15:39 de Bruno Manzoni