connect: ssh: Shall we remove the dependency of netcat ?

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

 



1 When we connect libvirt with URI "qemu+ssh", it uses 'nc' command to connect to libvirt-sock.

# virsh -c qemu+ssh://root@9.61.1.74/system list
Password: //ask users to input passwords here.
 Id    Name                           State
----------------------------------------------------
 11    pxe                            running

It in fact uses 'ssh' and 'nc' commands to connect to remote libvirt-sock, such as:
    ssh -l root 9.61.1.74 sh -c ''nc' -U /var/run/libvirt/libvirt-sock'

The code path is : virConnectOpen->doRemoteOpen->virNetClientNewSSH->virNetSocketNewConnectSSH

2 However, netcat(nc) is considered as an insecure tool, because it's too powerful in controlling the network.
  It's abandoned by some organizations.

3 So, is there any good substitution for netcat to realize qemu+ssh?

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]