LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   After an evening of FAQs - SSH2 (https://www.linuxquestions.org/questions/linux-networking-3/after-an-evening-of-faqs-ssh2-15162/)

Lexx 02-26-2002 11:39 PM

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.

unSpawn 02-27-2002 11:46 AM

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...

Lexx 02-27-2002 03:31 PM

Hm..do I have the ChRootGroup feature with OpenSSH?


All times are GMT -5. The time now is 12:04 AM.