Re: ssh
Francesco Pietra <chiendarret@gmail.com> writes:
> ssh target_machine_name date
>
> gives the date without asking a password. The mere sending id_rsa.pub
> to create the authorized_keys file only works (without asking the
> password) for command:
>
> ssh target_machine_name
In the case of the first command, are you running it interactively or
non-interactively from, say, cron or a batch job system?
If the latter is the case, you either must use passphrase-less SSH
keys (insecure) or load an ssh-agent once interactively and cause all
subsequent, non-interactive access to find and use that loaded agent.
The keychain package might help here.
OTOH, if you are indeed running the remote "date" command
interactively then I have no clue....
Luck,
-Brett.
Reply to:
- References:
- ssh
- From: Francesco Pietra <chiendarret@gmail.com>