ssh: work towards removing libssh dependency

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>