On Thu, Aug 01, 2013 at 03:05:17PM -0700, AaronO wrote:
> > +            client = paramiko.SSHClient()
> > +
> > +            policy = paramiko.client.MissingHostKeyPolicy()
> > +            client.set_missing_host_key_policy(policy)
> > +            client.connect(host, **kwargs)
> > +
> > +            # Open SSH session
> > +            channel = client.get_transport().open_session()
> > +
> > +            # Run commands
> > +            apply(channel.exec_command, command)
> > +
> > +            return ParamikoWrapper(client, channel, progress_stderr=progress_stderr)
> > +
> > +except ImportError:
> > +    warnings.warn('Install paramiko to have better SSH support (RSA and username/password authentication)')
> 
> What I meant there, is that basically the SSHVendor using the command line executable doesn't support runtime specified authentication, by that I mean usernames, passwords or RSA keys specified at runtime.
> 
> Of course the SSH client will hit the ```~/.ssh/``` folder to look for keys as well as query the ```ssh-agent```, but that's not flexible.
> 
> In my case I'm using this as part of a service with 1000s of users so it's just impractical to add those to the SSH folder or to the ssh-agent.
> 
> With the ParamikoSSHVendor you can specify all this stuff at runtime, from data pulled from a database for example
That's specific to your use case though. It sounds like you want to
warn from your application, and not from dulwich itself. For most
Dulwich users the default SSH client is fine.

Cheers,

Jelmer