Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Supplying "password" to "ssh" command
I intend to execute a command on one of my network machine through cronjob. It may so happen that I may not be available at that time to supply the password.
Also I cannot use private/public key concept to enable password less login due to security reasons.
I know it can be done through "expect" utility but is there a way I can provide password directly to ssh command.
$ssh -<some-argument> <password> user@remote-machine <command-to-be-executed>
Take for instance:
$ssh -password LetmeIN firstname.lastname@example.org date