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.




Network Security Secure-Shell
[Top] [All Lists]

Re: scp and Linux Restricted Shell

Subject: Re: scp and Linux Restricted Shell
Date: Tue, 02 Nov 2004 21:59:34 +1100
Robert Hajime Lanning wrote:
On Fri, 29 Oct 2004 15:21:48 -0700, Caprio, Don
<don.caprio@bankofamerica.com> wrote:

Anybody have a clue why scp will not work with F-Secure when the OpenSSH client 
is using
a restricted shell? I haven't been able to try with F-secure at both ends.

I am not sure but try giving access, via rbash, to exec the "sftp-server" binary.

Restricted usually shells won't allow executing binaries by full path, which is what "Subsystem sftp /usr/libexec/openssh/sftp-server" in OpenSSH's sshd_config does.


Try putting a link to sftp-server someplace in the restricted shell's path, change the line in sshd_config to "Subsystem sftp sftp-server" and restart sshd.

You might also want to investigate "rssh", a restricted shell specifically for scp and sftp connections.

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