PasswordCommand option for ssh client?

Jochen Bern Jochen.Bern at binect.de
Wed Jun 23 17:46:57 AEST 2021


On 22.06.21 05:20, asymptosis wrote:
> While I generally prefer keypair authentication, I am sometimes stuck
> with the need to access a variety of hosts which only permit password
> authentication. At the moment, I copy-paste my password from `pass`.
> 
> I wondered if it could be doable to add a new option to ssh_config,
> analogous to the various XYZCommand options available for sshd_config?

Further weakening the "CAPTCHAness" of password-based logins is a
somewhat *unpopular* topic with the OpenSSH project. :-}

Hence sshpass being maintained *outside* it ...

https://www.redhat.com/sysadmin/ssh-automation-sshpass

(Or, if you're really *mass* deploying *identical* commands, there are
clusterssh et.al.:

https://github.com/duncs/clusterssh
https://unix.stackexchange.com/questions/19008/automatically-run-commands-over-ssh-on-many-servers

)

Reards,
-- 
Jochen Bern
Systemingenieur

Binect GmbH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3449 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20210623/170ee248/attachment.p7s>


More information about the openssh-unix-dev mailing list