Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

non-interactive password - RSA

Subject: non-interactive password - RSA
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

<Prev in Thread] Current Thread [Next in Thread>
  • non-interactive password - RSA, rn001 <=