Temporary failure in name resolution

Net Llama! netllama
Wed Jun 6 08:13:47 PDT 2007


On Wed, 6 Jun 2007, Dirk Moolman wrote:
> -----Original Message-----
> From: linux-users-bounces at linux-sxs.org
> [mailto:linux-users-bounces at linux-sxs.org] On Behalf Of David Bandel
> Sent: 06 June 2007 01:15 PM
> To: Linux tips and tricks
> Subject: Re: Temporary failure in name resolution
> Try:
>
>> ssh myremotehost /home/oracle/file.sh
>>
>> Replace the : with a space.  And if your key is on the remote system,
>> you won't even be prompted for a password, the command will just
>> execute.
>>
>> If you want to run the script as a different user, add the `-l <user>`
>> after ssh.
>
>
> Another question, if I run this as a different user, for example
>
> ssh -l oracle myremotehost /home/oracle/file.sh
>
> how do I set up ssh, so that I don't have to enter a password ?

You need to generate an ssh key on the local system:
sshkey-gen -t dsa

then copy ~/.ssh/id_dsa.pub to the remote system and put it in 
~/.ssh/authorized_keys

> 1. Does the remote host see me coming in as root, or as oracle ? I would
> guess as root (I execute the ssh command as root)

root

> 2. and, I also assume that $ORACLE_HOME/.ssh/authorized_keys (for the
> oracle user) on the remote host must be updated for this to work -
> correct ?  Do I place root's public key in oracle's authorized_keys file
> ?

see above

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                        netllama at linux-sxs.org
LlamaLand				http://netllama.linux-sxs.org



More information about the Linux-users mailing list