Search code examples
sshpassphrase

ssh with passphrase


ssh user@host works (in a script via Apple Terminal)

does anybody know an easier way than ssh-agent to combine the passphrase with the ssh command ?

regards


Solution

  • You can use:

    sshpass -p password ssh user@host
    

    However if you wanted the luxory of not typing in your password, I would HIGHLY suggest setting up public/private ssh keys:

    http://www.ece.uci.edu/~chou/ssh-key.html

    and http://www.linuxproblem.org/art_9.html

    This is extremely secure, and very convient.