| Author |
Message |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 1:45 pm Post subject:
re:The SSH library compile problem
|
|
|
Yes this is the right way  |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Thu Mar 24, 2005 1:35 pm Post subject:
re:The SSH library compile problem
|
|
|
i think you should have used it like this :
| Code: |
gcc -o program program.c -L/home/customer/customer/libssh/lib -I/home/customer/customer/libssh/include/
|
|
|
| Back to top |
|
 |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 1:33 pm Post subject:
re:The SSH library compile problem
|
|
|
its not working sorry i have compile libssh in this dir`s
| Quote: |
/home/customer/customer/libssh/include/libssh this dir contains the files
config.h crypto.h libssh.h server.h sftp.h
|
| Quote: |
/home/customer/customer/libssh/lib this dir contains the files
libssh.so
|
when i compile
gcc -o program program.c -L/home/customer/customer/libssh/lib -I/home/customer/customer/libssh/include/libssh
i get this err
program.c:22:27: libssh/libssh.h: No such file or directory
program.c:23:25: libssh/sftp.h: No such file or directory
 |
|
| Back to top |
|
 |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 1:21 pm Post subject:
re:The SSH library compile problem
|
|
|
Yes this i what i need now thx |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Thu Mar 24, 2005 1:20 pm Post subject:
re:The SSH library compile problem
|
|
|
oh and BTW if you want to compile a program to use libssh installed in other directory then the usual ( /usr/lib , /usr/local/lib ) directories you can do:
| Code: |
gcc yourprogram.c -o yourprogram -L/path/to/libssh/lib -I/path/to/libssh/include
|
|
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Thu Mar 24, 2005 1:16 pm Post subject:
re:The SSH library compile problem
|
|
|
libssh is not even close to a brute force library, it is just an implementaion of the SSH protocol that can be used in other programs.
Whatever programs use it and how you use the programs is your business. |
|
| Back to top |
|
 |
SirVic *nix forums beginner
Joined: 15 Mar 2005
Posts: 3
Location: /dev/null
|
Posted: Thu Mar 24, 2005 1:14 pm Post subject:
re:The SSH library compile problem
|
|
|
|
i modified my post a little bit, i tought these things were kinda forbidden here :D & yes, i know libssh has other functions than just be the brute library, but i don't need those other functions ;-) |
|
| Back to top |
|
 |
linuxer *nix forums beginner
Joined: 11 Feb 2005
Posts: 8
|
Posted: Thu Mar 24, 2005 1:10 pm Post subject:
re:The SSH library compile problem
|
|
|
SirVix it's nice you revealed your reasons
But libssh is not used just in brutessh ( a great penetration testing and password security checking tool BTW), libssh is more than that as they say on : http://www.0xbadc0de.be/index.php?part=libssh#menu2
| Quote: |
The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer.
With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).
|
|
|
| Back to top |
|
 |
SirVic *nix forums beginner
Joined: 15 Mar 2005
Posts: 3
Location: /dev/null
|
Posted: Thu Mar 24, 2005 1:03 pm Post subject:
re:The SSH library compile problem
|
|
|
|
i know why you wanna do that :-) i tried to compile it in another dir, sure, it can be done with ./configure --prefix=/dir/to/libssh but it won't install properly, you get an error during the compilation of some programs wich you normaly don't get if the library is installed on uid0, so i figured out that you just have to install it under uid0, or perhaps i didn't find the right way (yet) ;) |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Thu Mar 24, 2005 12:55 pm Post subject:
re:The SSH library compile problem
|
|
|
You should be able to install it in your home directory,
if this lib has a configure script then you should be able to
run it like
| Code: |
./configure --prefix=/home/yourusername/libssh
make && make install
|
|
|
| Back to top |
|
 |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Thu Mar 24, 2005 12:37 pm Post subject:
The SSH library compile problem
|
|
|
Hello i have one BIG problem i have this ssh library
| Quote: | | http://www.0xbadc0de.be/libssh/libssh-0.11.tgz |
my problem is that i don`t want to be root to install libssh i want to install this library with another uid like a normal user how can it be done ? |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|