From qihangzp at gmail.com Thu May 31 15:11:26 2012 From: qihangzp at gmail.com (qihang zhang) Date: Thu, 31 May 2012 21:11:26 +0800 Subject: [execnet-dev] How to write a ssh_config file? Message-ID: Hi~ I wanna use execnet to remote-exec a function through a ssh gateway.Host info as below: - username : ubuntu - passwd: ubuntu - hostname: 10.136.16.233 I don't know how to write a ssh_config file including these information so that i can connect the remote server. -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at merlinux.eu Thu May 31 15:18:49 2012 From: holger at merlinux.eu (holger krekel) Date: Thu, 31 May 2012 13:18:49 +0000 Subject: [execnet-dev] How to write a ssh_config file? In-Reply-To: References: Message-ID: <20120531131849.GK10174@merlinux.eu> On Thu, May 31, 2012 at 21:11 +0800, qihang zhang wrote: > Hi~ > I wanna use execnet to remote-exec a function through a ssh > gateway.Host info as below: > > - username : ubuntu > - passwd: ubuntu > - hostname: 10.136.16.233 > > > I don't know how to write a ssh_config file including these information so > that i can connect the remote server. As far as i know there is way to specify a password in an ssh_config file. Did you look into using an DSA/RSA key? This way you could have your ssh_config point to a key file and configure the remote side to accept your key. This is a bit long but has the key information i think: http://support.suso.com/supki/SSH_Tutorial_for_Linux holger From Ronny.Pfannschmidt at gmx.de Thu May 31 15:17:31 2012 From: Ronny.Pfannschmidt at gmx.de (Ronny Pfannschmidt) Date: Thu, 31 May 2012 15:17:31 +0200 Subject: [execnet-dev] How to write a ssh_config file? In-Reply-To: References: Message-ID: <4FC76F6B.5080706@gmx.de> Hi qihang zhang, an example would be something like Host ubuntu Hostname 10.136.16.233 User ubuntu then the host would be usable as "ssh=ubuntu" it is not possible to configure a password (obvious security issue) please check out key based authentification instead -- Ronny On 05/31/2012 03:11 PM, qihang zhang wrote: > Hi~ > I wanna use execnet to remote-exec a function through a ssh > gateway.Host info as below: > > * username : ubuntu > * passwd: ubuntu > * hostname: 10.136.16.233 > > > I don't know how to write a ssh_config file including these > information so that i can connect the remote server. > > > > _______________________________________________ > execnet-dev mailing list > execnet-dev at codespeak.net > http://codespeak.net/mailman/listinfo/execnet-dev