The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: logon to ssh
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-10-2005
rocky_triton rocky_triton is offline
Registered User
  
 

Join Date: Apr 2005
Location: Antarctica
Posts: 12
logon to ssh

Hi, I need to run a command remotely, rsh is disabled so I'm trying to do this:

ssh myserver ls -lst /work/jsf

The problem is that this prompts for a password and I want to do it in a shell script. How can I pass the password without user interaction? I tried "echo mypass | ssh_command" and that didn't help.

Thanks,
-- Rocky