[Wien] ssh with password authentication

Elias Assmann elias.assmann at gmail.com
Mon Aug 26 22:14:49 CEST 2013


On 08/25/2013 01:03 PM, Yundi Quan wrote:
> Can WIEN2k use multiple nodes which do not share memory with each other
> and requires password to communicate?

If you are talking about a situation where you are unable to use 
passwordless login like Peter suggested, there is a way to do it.

It is not trivial (i.e. `echo PASSWORD | ssh ...´ does not work) because 
`ssh´ tries to prevent this kind of thing because it is insecure; you 
have to trick `ssh´ into thinking its input comes from a terminal.  One 
such solution is provided by `sshpass´:
<http://sourceforge.net/projects/sshpass/>.

Use this script with care, if you have to.  If you can, use the proper 
"ssh-keygen / ssh-copy-id" method.


	Elias



More information about the Wien mailing list