Ajitabh Pandey's Soul & Syntax

Exploring systems, souls, and stories – one post at a time

Tag: SSH

  • Tightening up OpenSSH

    Often I am required required to run a public ssh server, so its a good idea to restrict the OpenSSH server as much as possible.
    (more…)

  • Filesystem in User Space

    Setting up sshfs

    In order to setup sshfs on a debian system, I needed to install the sshfs packages:

    sudo apt-get install sshfs fuse-source module-assistant kernel-headers-2.6
    sudo module-assistant build fuse
    sudo module-assistant install fuse

    While building the fuse module I was asked whether I need a seperate group to be able to use the fusermount command and whether I want this group to be removed when the package is removed and so on. I answered all the defaults. Finally I put myself in the group which I created while building the fuse module.

    That’s it, then logout and log back in so that the group permissions can take effect. Or use the newgrp command.

    To mount the remote filesystem I first created a main directory to hold all my remote mount-points.

    mkdir remote_dirs
    cd remote_dirs
    mkdir server_1 server_2
    sshfs user01@server_1:. server_1/
    sshfs user01@server_2:. server_2/

    If ssh keys are already setup for a password less login then you wont be asked a password otherwise a password prompt will be displayed where you need to enter the remote servers password.