non-interactive password - RSA
From: rn001 (rn001_at_cebas.csic.es)
Date: 10/18/04
- Previous message: DanGer: "syslogin_perform_logout: logout() returned an error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: secureshell@securityfocus.com Date: Mon, 18 Oct 2004 13:34:55 +0200
Hi all;
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
linux shell.
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 161.111.146.131 "C:/remote_ssh.bat"
or
$ssh -i /etc/ssh/ssh_host_rsa_key -v 161.111.146.131 "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?
Best regards,
Javier
- Previous message: DanGer: "syslogin_perform_logout: logout() returned an error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|