ssh generation does not work



Hi guys,

- I'm trying to make a configuration that i've done too many time. I wan't
a script to execute a command in a remote server without the need to type or
pass the password.
- I'm using the follow commands:

ssh-keygen
scp .ssh/id_rsa <remote_user>@<remote_machine>:~/
ssh <remote_user>@<remote_machine> "cat ~/.id_rsa >> ~/.ssh/authorized_keys"
# Here i still neeed to use my password but thats right.
ssh <remote_user>@<remote_machine>
# Here i still neeed to use my password and that's not good because
i already typed the command to add the public key from my local user in the
remote machine.

- Does someone has any idea of what i'm doing wrong? I did it may time
before and always worked. Does someone know if i have to make some
modification at the /etc/ssh/ssd_config of my local machine or the
/etc/ssh/sshd_config of my remote machine for this to work?
- My local machine is a "FreeBSD 7.0-RELEASE-p1 generic amd64" and the ssh
is "OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.8e 23 Feb 2007".
- The remote machine is a "Red Hat Enterprise Linux ES release 4 (Nahant
Update 5)" and the ssh version is "OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
".

--
Helio Campos Mello de Andrade


Relevant Pages

  • CGIscript.net - csMailto.cgi - Remote Command Execution
    ... CGIscript.net - csMailto.cgi - Remote Command ... csMailto is a perl cgi formmail script developed by ... execute command on server and mail output to anyone ...
    (Bugtraq)
  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.questions)
  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.shell)
  • Re: Newbie getting desperate with for
    ... This tells the shell to run the script ... When you run a command from the shell, it first tries to directly execv ... which calls the kernel to load and execute the file. ...
    (comp.lang.python)
  • =?iso-8859-1?Q?Re:_Jcl?=
    ... I can send you a program that you execute as a step in your job and it ... I have a command and job scheduler that is available in a free version ... demand script processor with the full scripting ability so that your job ...
    (bit.listserv.ibm-main)