Prevent ssh access view of other directories?

Discussion in 'General' started by PermaNoob, Jan 17, 2007.

  1. PermaNoob

    PermaNoob Member

    Yes, thanks to Martins info I understand that now.

    I followed the instructions http://www.howtoforge.com/chrooted_ssh_howto_debian_p2 exactly:

    So I copied and pasted the text into my command line and hit Return, however, the text when copied and pasted comes out

    which obviously is screwed up. Does it copy and paste correctly from your browser?

    The instructions should be to create a file as Martin suggested and chmod and ./ execute it so the program is setup correctly.

    Anyway, I still have the problem of when I run it I get

    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory

    I'm afraid to make any further moves for fear of screwing something up if I haven't already.

    Should I start the process over, and would that be safe?
     
    Last edited: Jan 21, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes.

    Not nescessarily as it works fine even without creating a file. All the howtos from Falko are double tested from other developers and they work out of the box without any modification. The way martinfst suggested was only a workaround to make it easier for you to correct errors in the script before it is executed.

    From which directory are you executing the command?
     
  3. PermaNoob

    PermaNoob Member

    OK, tried to copy and paste the script using Firefox and it copies the correct formatting, so a warning should be added for users not to copy paste from Internet Explorer, Maxthon or other IE derivatives.

    However, I still get the same

    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory
    cp: cannot stat `(0xffffe000)': No such file or directory

    error.

    I'm running it in /home/chroot

    If I haven't screwed anything up so far, I think I'll just take your suggestion to only give clients ftp access, which is what I've done in the past, I just thought some might appreciate ssh access for the extra security, particularly as winscp is so easy to use.
     
    Last edited: Jan 22, 2007
  4. mayhem

    mayhem New Member

    Is there another place to download openssh-4.2p1-chroot.tar.gz, cause sourceforge gives me this error:

    Code:
    mayhem@zeroseven:/tmp$ wget http://chrootssh.sourceforge.net/download/openssh-4.2p1-chroot.tar.gz
    --11:07:35--  http://chrootssh.sourceforge.net/download/openssh-4.2p1-chroot.tar.gz
               => `openssh-4.2p1-chroot.tar.gz'
    Resolving chrootssh.sourceforge.net... 66.35.250.209
    Connecting to chrootssh.sourceforge.net|66.35.250.209|:80... failed: Connection refused.
    
    maybe someone could email it to me?
    mayhem [dot] nu [at] gmail [dot] com

    Many thanks
     
  5. falko

    falko Super Moderator Howtoforge Staff

    You could download it to your workstation and then upload it to your Linux system, e.g. with WinSCP.
     

Share This Page