Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Public folder and SSH security

  1. #1
    Join Date
    Oct 2011
    Beans
    92

    Public folder and SSH security

    Is it possible to share folder (e.g. the Public folder) on a network without SSH?
    I've done this following a guide that involved installed openSSH and it works really well, but I am just worried about security vulnerabilities. I just want to share the one folder rather than be able to PuTTY into the computer etc.

    If not is there a way I can secure the openSSH?

  2. #2
    Join Date
    Jun 2007
    Location
    Minneapolis, MN
    Beans
    749
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Public folder and SSH security

    Have you tried SFTP:
    Code:
    nautilus sftp://USER@HOSTNAME/home/USER/Public
    Moderation in all things; including moderation.

  3. #3
    Join Date
    Sep 2006
    Beans
    7,547
    Distro
    Lubuntu Development Release

    SFTP-only logins

    To add to JRV's client-side suggestion, on the server side of things you can disable shell login for all or a few of the users by forcing an SFTP session. It's very easy.

    There are dozens of tutorials around on how to make your SSH sessions SFTP-only. Here is one to get started with.

    http://www.howtoforge.com/setting-up...r-file-uploads

  4. #4
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    7,951

    Re: Public folder and SSH security

    Another age old trick to secure a FTP server (any type), is to separate the upload and download directories. That way, only the admin can move files from the upload side of things to the download side of things, thus preventing mischief.

  5. #5
    Join Date
    Mar 2009
    Location
    London
    Beans
    190

    Re: Public folder and SSH security

    If you happen to have Python installed and need quickly to share a folder:
    Code:
    python -m SimpleHTTPServer
    http://www.linuxjournal.com/content/...-server-python

  6. #6
    Join Date
    Dec 2005
    Location
    Washington
    Beans
    Hidden!
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Public folder and SSH security

    Quote Originally Posted by rizzeh View Post
    If you happen to have Python installed and need quickly to share a folder:
    Code:
    python -m SimpleHTTPServer
    http://www.linuxjournal.com/content/...-server-python
    Very cool, thank you for posting this. I just started playing with SSH so I got to remotly login and then share some files I wanted off that computer.
    Rob
    Ubuntu-One Cloud Storage, Sync files between your comuters Back-up & Share files. Sign Up!

  7. #7
    Join Date
    Feb 2008
    Location
    Pelican Bay Correctional
    Beans
    Hidden!

    Re: Public folder and SSH security

    Quote Originally Posted by rizzeh View Post
    If you happen to have Python installed and need quickly to share a folder:
    Code:
    python -m SimpleHTTPServer
    http://www.linuxjournal.com/content/...-server-python
    Security Advice:
    Do make a sub-directory and place any files that you wish to share in it and run the python code from that directory.
    What's a landing but a take off in reverse?

  8. #8
    Join Date
    Dec 2005
    Location
    Washington
    Beans
    Hidden!
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Public folder and SSH security

    Question? If your going to run python SimpleHTTPServer. Does running App-Armor help at all?
    Rob
    Ubuntu-One Cloud Storage, Sync files between your comuters Back-up & Share files. Sign Up!

  9. #9
    Join Date
    Oct 2011
    Beans
    92

    Re: Public folder and SSH security

    thanks for all the replies

  10. #10
    Join Date
    Mar 2009
    Location
    London
    Beans
    190

    Re: Public folder and SSH security

    Quote Originally Posted by robtygart View Post
    Question? If your going to run python SimpleHTTPServer. Does running App-Armor help at all?
    There is a package for it, however i would rather use python server as a quick and dirty solution to share files over local network and wouldn't permanently run it.

    http://packages.ubuntu.com/precise/python-libapparmor

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •