====== 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 [[fr:tools:homebrew_osx|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 ===== ---- dataentry Software ---- name : Sshpass page_page : fr:tools:sshpass main class_frclasstags : Software network class_frsoftcatnettags : Communication, Network new network class_frtooltags : multimedia class_frsoftcatmultags : new multimedia class_frtooltags : security class_frsoftcatsectags : Cryptography, Security new security class_frtooltags : system class_frsoftcatsystags : Operating system, System new system class_frtooltags : developement class_frsoftcatdevtags : new developement class_frtooltags : genre_frtooltags : Communication, Network, Cryptography, Security, Operating system, System description : Add password to ssh (Non-interactive ssh password auth) logo_img : screenshot_img : discontinued_frtooltag : status_frdevstatustag : Active programming language_frtooltags : Other operating system_frostags : Linux, macOS platforms_frplateformtags : i386, x86_64 website_urls : https://sourceforge.net/projects/sshpass/ license_frtooltag : GNU General Public License version 2.0 (GPLv2) ----