Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2001 07:47:08 +0100 (CET)
From:      Micke Josefsson <mj@isy.liu.se>
To:        Odhiambo Washington <wash@iconnect.co.ke>
Cc:        FBSD-Q <freebsd-questions@FreeBSD.ORG>
Subject:   RE: SSH and remote execution of tasks
Message-ID:  <XFMail.010316074708.mj@isy.liu.se>
In-Reply-To: <20010315145408.A24595@poeza.iconnect.co.ke>

next in thread | previous in thread | raw e-mail | index | archive | help

On 15-Mar-01 Odhiambo Washington wrote:
> Hi,
> I am sorry if this has been discussed before. I just have to ask because I
> did not find the answer in the man page.
> We've disabled telnetd in a couple servers that we have so we have
> resorted to SSH. I have seen discussions on the list regarding the
> running of a task on a remote machine without the option of login to a
> shell. 
> 
> Now my Q is, where do I get all these details? I have a case where I have
> to run a script to update user accounts and since a few people use the
> same script we decided to give little executionary privilege via sudo.
> So I am in my shell on hostA and all I want to do is run scriptX on hostB
> via ssh. I always have to verify my passwd when running scriptX from a
> shell isn hostB. How do I do that via SSH? 
> 

The user you are impersonating on HostB must have your public key from HostA in
his /~/.ssh/authorized_keys. 

The host-keys (in /etc/ssh/...) public parts also have to be exchanged and
implanted into each others /etc/ssh/authorized_keys

It took me a bit of testing to get to this - specially since there are both RSA
and DSA keys to manipulate if fallback to ssh1 is used.



> 
> -Wash
> 
> --
> Odhiambo Washington  Inter-Connect Ltd.,
> wash@iconnect.co.ke  5th Flr Furaha Plaza
> Tel: 254 11 222604   Nkrumah Rd.,
> Fax: 254 11 222636   PO Box 83613 MOMBASA, KE.
> 
> It is illegal to drive more than two thousand sheep down Hollywood Boulevard 
> at one time. 

----------------------------------
Michael Josefsson, MSEE
mj@isy.liu.se

This message was sent by XFMail
running on FreeBSD 4.3-BETA
----------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010316074708.mj>