SSHFS: Super Easy File Access over SSH

Posted: January 7, 2010 in archlinux, Debian, Freebsd, My live, Slackware

Mcm mana nak remote fail? kalau ftp tak bukak?

selain pakai winscp atau scp dalam linux kita boleh pakai apa yer secure dan mudah?

SSHFS: Super Easy File Access over SSH

Adalah jawapan bagi semua kemuskilan.

install sshfs untuk remote fail dalam linux dan edit mcm korang edit dalam partions windows / linux.

install sshfs dalam debian / ubuntu

aptitude install sshfs

####### red hat / centos @ fedora

yum install fuse-sshfs

(jangan lupa install utiliti fuse)

aptitude install fuse-utils

add user utk pakai fuse

adduser casper fuse

####### red hat / centos @ fedora

usermod -a -G fuse casper

dah tu boleh lah buat folder utk si hantu casper nih masuk / remote server.

mkdir -p /web/casper

chown casper:casper /web/casper

utk mount folder nih dalam linux sesapa yg pakai ubuntu (mentang2 ubuntu popular sekarang heheeh ramai yg mengaku pakai linux ;p)

atau sebarang linux distro.

sshfs username@domainname/ip:folder /web/casper

example :

sshfs casper@123.123.123.123:d /web/casper

@

sshfs casper@345.345.345.345:

dia akan mintak password

casper@123.123.123.123’s password : **********

dah tuh list kan folder

ls -l /d/casper

########### sshfs without password ####################

This is not recomended for server remote / use on LAN server only

ssh-keygen -t rsa

enter for all questions

than copy the id.rsa.pub to your subfolder .ssh home folder

mv id.rsa.pub /home/casper.ssh/

cat id.rsa.pub >> authorized_keys

chmod 600 authorized_keys

than key in this command on your fstab

sshfs#casper@123.123.123.123:/folder/ /web/casper

exam : sshfs#casper@1.2.3.4:/d/ /web/casper

to unmount this folder

fusemount -u /mountpoint/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s