LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2002, 11:39 PM   #1
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Rep: Reputation: 0
Wink After an evening of FAQs - SSH2


I was hard on getting Telnet up for some users, and the peeps on this board recommended ssh.

I screwed for hours with ssh and realized that there was ssh1 and ssh2 ( har har hehe ) and that I needed to get ssh2 to do what I wanted to.

I installed ssh2 from www.ssh.com and got it up and running, I set up my sshd2_config and all, made a lil script to add users to the passwd, group and shadow files - and it works!

I created /etc/skel folder into which I created a /bin folder and compiled bash, fileutils and textutils with the LDFLAGS=-static, I did a ln -s bash sh as per the faq. These are reflected onto the /home/$USERNAME/bin/ when I create a new user.

Users who ssh2 into my box now have access to basic commands, but I can't get pico to work inside it. I got the pico install files, but there doesn't seem to be a static compile...all I want is to be able to get pico into the user's directory.

Has anyone successfully done this? Am I missing the point somewhere? Can I just copy pico from /usr/sbin/ into my /etc/skel/bin somehow so that it'll end up working? They show in the /home/username/bin folder but don't work at all. It's like they're not there ( but they can be rm'ed ).

Hellppp!

summary: How do I copy apps successfully into a user's ssh2 chrooted environment.

A Tenacious Newbie.
 
Old 02-27-2002, 11:46 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Please don't use ssh.com's sshd, use OpenSSH instead. Why? ssh.com's sshd is a package with restrictions on usage typical of commercial entities, while OpenSSH is build, ported and audited thoroughly by the OpenBSD project team, and released under a (minimally restrictive) BSD license.

You could do "ldd <filename>" to get the lib requirements and copy them over, but usually I let "rootjail" (see freshmeat.org) set it up for me, and then tweak for missing/modify stuff. *Btw, if you need (static) binaries *and* like to save some space, have a look at the "BusyBox" project, which rolls 30-something binaries into one, and the sash shell, which incorporates some binaries (uhm, their functions) as well...
 
Old 02-27-2002, 03:31 PM   #3
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Original Poster
Rep: Reputation: 0
Hm..do I have the ChRootGroup feature with OpenSSH?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQs Shantesh Linux - Newbie 16 06-17-2006 03:18 AM
where can i get the faqs mohit dhawan Linux - Newbie 1 04-06-2005 10:42 AM
Server crashed this evening:( plisken Linux - General 6 10-24-2004 08:20 PM
Good evening :) Lightpost LinuxQuestions.org Member Intro 1 09-28-2004 03:43 PM
Good evening folks. Fisher of Men LinuxQuestions.org Member Intro 2 07-20-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration