remote command over ssh, password prompt
Hi,
I can run a remote command over ssh from the command line, but it always prompts me for a password on the remote machine. I want to execute this command from a script when I log in. How can I avoid the password: prompt?
ssh myserver '/usr/bin/rp3 -i ppp0 &'
jonathan@myserver's password:
Also, it seems to get confused when I add an "&" to run it in background, such as
ssh myserver '/usr/bin/rp3 -i ppp0 &' &
jonathan@myserver's password:
secret
bash: secret: command not found
[2]+ Stopped ssh myserver '/usr/bin/rp3 -i ppp0 &'
it seems to interpret my password as a new command?
thanks,
|