Displaying 2 results from an estimated 2 matches for "virconncb".
2013 Apr 11
2
How can I open a libvirt remote connection with ssh
...word, the connection can be created.
How can I connect to libvirtd with ssh automatically? No need to type the password manually.
char *au[2] = {"root", "xxxx"};
virConnectAuth auth = {
credTypes,
sizeof(credTypes) / sizeof(int),
virConnCb,/* callback function, actually was not be called after connect*/
au /* user and password */
};
conn = virConnectOpenAuth("qemu+ssh://192.168.1.102/system", &auth, 0);
Thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed......
2013 Apr 11
0
reboot command lost?
...;
> How can I connect to libvirtd with ssh automatically? No need to type the password manually.
>
> char *au[2] = {"root", "xxxx"};
> virConnectAuth auth = {
> credTypes,
> sizeof(credTypes) / sizeof(int),
> virConnCb,/* callback function, actually was not be called after connect*/
> au /* user and password */
> };
> conn = virConnectOpenAuth("qemu+ssh://192.168.1.102/system", &auth, 0);
>
>
> Thanks,
> Kevin
> -------------- next part ---------...