niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux
The SSH library compile problem
Post new topic   Reply to topic Page 1 of 1 [11 Posts] View previous topic :: View next topic
Author Message
KerneL
*nix forums beginner


Joined: 28 Jan 2005
Posts: 37

PostPosted: Thu Mar 24, 2005 12:37 pm    Post subject: The SSH library compile problem Reply with quote

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
mihai
*nix forums addict


Joined: 27 Jan 2005
Posts: 71

PostPosted: Thu Mar 24, 2005 12:55 pm    Post subject: re:The SSH library compile problem Reply with quote

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
SirVic
*nix forums beginner


Joined: 15 Mar 2005
Posts: 3
Location: /dev/null

PostPosted: Thu Mar 24, 2005 1:03 pm    Post subject: re:The SSH library compile problem Reply with quote

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
linuxer
*nix forums beginner


Joined: 11 Feb 2005
Posts: 8

PostPosted: Thu Mar 24, 2005 1:10 pm    Post subject: re:The SSH library compile problem Reply with quote

SirVix it's nice you revealed your reasons Smile
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

PostPosted: Thu Mar 24, 2005 1:14 pm    Post subject: re:The SSH library compile problem Reply with quote

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
mihai
*nix forums addict


Joined: 27 Jan 2005
Posts: 71

PostPosted: Thu Mar 24, 2005 1:16 pm    Post subject: re:The SSH library compile problem Reply with quote

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
mihai
*nix forums addict


Joined: 27 Jan 2005
Posts: 71

PostPosted: Thu Mar 24, 2005 1:20 pm    Post subject: re:The SSH library compile problem Reply with quote

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
KerneL
*nix forums beginner


Joined: 28 Jan 2005
Posts: 37

PostPosted: Thu Mar 24, 2005 1:21 pm    Post subject: re:The SSH library compile problem Reply with quote

Yes this i what i need now Smile thx
Back to top
KerneL
*nix forums beginner


Joined: 28 Jan 2005
Posts: 37

PostPosted: Thu Mar 24, 2005 1:33 pm    Post subject: re:The SSH library compile problem Reply with quote

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
Crying or Very sad
Back to top
mihai
*nix forums addict


Joined: 27 Jan 2005
Posts: 71

PostPosted: Thu Mar 24, 2005 1:35 pm    Post subject: re:The SSH library compile problem Reply with quote

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

PostPosted: Thu Mar 24, 2005 1:45 pm    Post subject: re:The SSH library compile problem Reply with quote

Yes this is the right way Smile
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [11 Posts] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 3:47 pm | All times are GMT
navigation Forum index » *nix » Linux
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

McDonalds | Credit Cards | Mortgage Calculator | Gas Suppliers | Mobile Phones
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2506s ][ Queries: 16 (0.1615s) ][ GZIP on - Debug on ]