Showing posts with label FreeNAS. Show all posts
Showing posts with label FreeNAS. Show all posts
Tuesday, August 10, 2010
FreeNAS FTP
If you have trouble with FTP working (I did with version .7), it may be have something to do with having DHCP set instead of a static IP. Try either changing DHCP to static or going into Network/Hosts and adding a host. Enter the name of the freenas server (in my case "freenas") and the IP that belongs to it. Now try to FTP.
Friday, February 12, 2010
Login to FreeNAS via Passwordless SSH - GNU/Linux
I found this solution on the FreeNAS forums. It's not very straightforward, in my opinion, to setup SSH passwordless login on FreeNAS.
Taken from FreeNAS forums:
What you need to do to customize your server for passwordless authentication:
Taken from FreeNAS forums:
What you need to do to customize your server for passwordless authentication:
- From WebGUI|Advanced|Execute command or shell
- protect the /mnt directory by setting the mode to 755(we don't want users to write on /mnt, that can fill up the RAM disk and crash the system.
You must change the mod as startup command, after each reboot.
Code:
chmod 755 /mnt
- For your safety change the mode for each mount, or at least one "mount".
Code:
chmod 755 /mnt/mount
- Create the user(A) home directory /mnt/mount/userA
Code:
mkdir /mnt/mount/userAdir
- Make userA the owner of his home directory
Code:
chown userA /mnt/mount/userAdir
- Secure userA home directory
Code:
chmod 700 /mnt/mount/userAdir
- protect the /mnt directory by setting the mode to 755(we don't want users to write on /mnt, that can fill up the RAM disk and crash the system.
- Set userA home directory on WebGUI|Access|Users|Edit|Home directory to point to /mnt/mount/userAdir
- From your remote client(ssh/PuTTy)
- Check if home directory is set corectly for userA. The output should be /mnt/mount/userAdir
Code:
ssh -p 22 userA@FreeNASip 'pwd'
- Create the .ssh directory
Code:
ssh -p 22 userA@FreeNASip 'mkdir .ssh'
- Upload your id_rsa.pub or id_dsa.pub to remote .ssh directory.
Code:
cat id_rsa.pub | ssh -p 22 userA@FreeNASip 'cat >> .ssh/authorized_keys'
- Change the .ssh dir mode
Code:
ssh -p 22 userA@FreeNASip 'chmod -R 700 ~/.ssh'
- Check if home directory is set corectly for userA. The output should be /mnt/mount/userAdir
- Now try to login passwordless.
Labels:
FreeNAS,
GNU/Linux,
passwordless,
ssh
Subscribe to:
Posts (Atom)