expect - How can I pipe a passcode into ssh perhaps using the utility yes? -


how can pipe passcode ssh? have in mind following, using utility yes:

yes mysupersecretpasscode | ssh user@topsecretserver.foo 

this still results in ssh requesting manual entry of passcode.

note aware of ssh keys , on. have reasons trying way.

yes repeat whatever give fast possible until stopped. should rather try echo piping. said, want use key based authentication, storing password in plain text not idea.

look @ https://www.debian-administration.org/article/530/ssh_with_authentication_key_instead_of_password guide key based authentication. leave key passphrase empty avoid being prompted when logging in.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -