Hi Henrik, hi all; Thanks, Henrik. The point 2) is resolved. At last I've seen that the best option for me is to write a .bat file in MS-DOS, whit the commands I want, and I just call this .bat through ssh; this is much more flexible for me. But the point 1) is fighting hardly: 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 ..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 how to use the ssh sintax to provide the key file correctly? Javier ---------------------------------------------------- El Viernes, 15 de Octubre de 2004 11:59, escribió: > On Fri, 15 Oct 2004, rn001 wrote: > > 1) A password is required interactively, and this would prevent the batch > > mode. > > Register a SSH key on you client and server. See the SSH documentation. > > > 2) and I don't know how to specify the commands including the path. > > Just specify them by full path to ssh. > > Regards > Henrik > - > : send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- A. Javier Garcia Water and Soil conservation department CEBAS-CSIC Campus Universitario Espinardo PO BOX 164 30100 Murcia (SPAIN) Phone: +34 968 39 62 57 Fax: +34 968 39 62 13 email: rn001@cebas.csic.es - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html