Use dump command with header to figure out library files and it’s path

dump -H /usr/bin/ssh

Example:-

labserver:/ # dump -H /usr/bin/ssh

/usr/bin/ssh:

***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x0000014b 0x000006b4 0x00000050

#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000004 0x00006f98 0x00000c77 0x00006fe8
***Import File Strings***
INDEX PATH BASE MEMBER
0 /usr/lib:/lib
1 libc.a shr.o
2 libcrypto.a libcrypto.so.1.0.0
3 libz.a libz.so.1
labserver:/ #

Advertisements