non-interactive password - RSA
From: rn001 (rn001_at_cebas.csic.es)
To: email@example.com Date: Mon, 18 Oct 2004 13:34:55 +0200
I'm not a network administrator, so please forgive my difficulties.
I need to make windows programmes be started through a linux remote computer,
in a non-interactive way.
I've done all steps with ssh except that I'm asked for the pasword in an
interactive way in the client linux ssh, preventing the batch mode from the
So I've tried to generate RSA keys in both, the windows sshd server and the
client linux ssh:
I've executed key-gen to put a key in the windows ssh-server:
C:\>ssh-keygen -b 1024 -t rsa -f ssh_host_rsa_key
and put the ouput files in C:\Program files\OpenSSH\etc
I've also executed key-gen to put the key in the linux ssh client:
$ ssh-keygen -b 1024 -t rsa -f ssh_host_rsa_key
and put the output generated files in /etc/ssh
Then I try:
$ssh -i /etc/ssh/ssh_host_rsa_key.pub -v 184.108.40.206 "C:/remote_ssh.bat"
$ssh -i /etc/ssh/ssh_host_rsa_key -v 220.127.116.11 "C:/remote_ssh.bat"
but it still asks for the password interactively. And I can't find my way in
the documentation to provide the password directly.
Please, could you tell me what am I doing wrong?