Alarme de Sécurité Sshpass permet de contourner la sécurité mise en place dans les outils SSH qui supportent
A utiliser en connaissance de cause et préférez l'authentification par certificats !
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
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/