Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Problems with cross-compiled OpenSSH |
|---|---|
| Date: | Tue, 05 Jun 2007 07:43:16 +1000 |
Hello All,
I have successfully cross-compiled OpenSSH, but when I try to start the sshd process on my target system, it complains as follows:
/home/dallas/openssh_install/etc/sshd_config: No such file or directory.
Sure enough, that directory does not exist because that is where the makefile installed the files on the host from which I did the cross-compilation from. The path should have been '/etc/sshd_config' instead. It looks like the incorrect path is somehow embedded in the sshd executable.
I am configuring openssh as follows for cross-compilation:
./configure --prefix=/home/dallas/openssh_install \ --with-zlib=/home/dallas/zlib_install \ --with-ssl-dir=/homd/dallas/openssl_install \ CC=i686-unknown-linux-gnu-gcc
If I do a make and then a make install, the various config files are installed to /home/dallas/openssh_install/etc
However, I would like for the various executables to look for the config files in the /etc directory on my target system. Does anyone know how to do this properly?
./configure --sysconfdir
I can see that there is a --sysconfdir option, which if I set to /etc/ssh, the make install will try to install the config files to that directory on my cross-compiling host system which I do not want!!
Use "make install-nosysconf" instead.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Auditing SSH logs, Rainer Peter Feller |
|---|---|
| Next by Date: | Re: Privilege separation user sshd does not exist, Darren Tucker |
| Previous by Thread: | Problems with cross-compiled OpenSSH, Dallas Clement |
| Next by Thread: | Re: Problems with cross-compiled OpenSSH, Dallas Clement |
| Indexes: | [Date] [Thread] [Top] [All Lists] |