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…)
Tag: SSH
-
Tightening up OpenSSH
-
Filesystem in User Space
Setting up sshfs
In order to setup
sshfson a debian system, I needed to install thesshfspackages:sudo apt-get install sshfs fuse-source module-assistant kernel-headers-2.6
sudo module-assistant build fuse
sudo module-assistant install fuseWhile building the fuse module I was asked whether I need a seperate group to be able to use the
fusermountcommand 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
newgrpcommand.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
sshkeys 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.

