fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Remote ssh password


From: Geir Engebakken
Subject: Re: [Fab-user] Remote ssh password
Date: Fri, 21 Mar 2014 08:38:16 +0000

Yes I have tested and installed expect, so that works and  can be used, but I thought maybe fabric itself could possibly deal with this. With expect I need to install it on all servers.

 

 

Geir

 

From: Nathan Brazil [mailto:address@hidden
Sent: 21. mars 2014 05:44
To: Geir Engebakken
Cc: address@hidden
Subject: Re: [Fab-user] Remote ssh password

 

Not necessarily a fabric-related topic, but have you looked into the expect utility?

 

--

 

On Mar 20, 2014, at 5:44 AM, Geir Engebakken <address@hidden> wrote:



We are interested in using fabric to run remote commands for setting up keyless login from one remote server1 to another server2 . This implies that we need to supply a password for the user on server2 when running the remote fabric command on server1 , any idea how we can accomplish this?

 

The actual command we want to run remotely on server1  is :

 

ssh address@hidden  'umask 077; test -d .ssh || mkdir .ssh ; chmod 700 .;cat >> .ssh/authorized_keys'

 

 

Of course the actual running of the command on server1 is set up with keyless login on beforehand.

 

 

Geir

 

_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]