[CONTEXT]
Access a remote file system
[WHEN]
You want to transfer files from/to a server which you have a ssh access
[HOW]
As root:
install fuse
#apt-get install fuse-utils sshfs ssh
and load its kernel module
#modprobe fuse
add your regular user to fuse's group
#adduser [your-user] fuse
(reboot the machine)
Now using your regular user:
Mount your remote directory:
$ sshfs [user@]host:[dir] mountpoint [options]
e.g.
$sshfs remote-user@remote.server:/remote/directory /home/user/remote/
(If you only put ':' is going to be your default directory)
Then, you can manipulate your remote folder as a regular local folder.
Unmount your remote directory
$fusermount -u mountpoint
e.g.
$fusermount -u /home/user/remote/
[SOURCE]
http://www.debianadmin.com/mount-a-remote-file-system-through-ssh-using-sshfs.html
Showing posts with label access. Show all posts
Showing posts with label access. Show all posts
Sunday, April 21, 2013
Saturday, February 9, 2013
GNU Screen Command
[CONTEXT]
Window manager that multiplexes a physical terminal between several processes, typically interactive shells.
[WHEN]
Pair remote programming/assistance. Using the multiuser mode to do pair programming or create a teaching environment.
[HOW]
sudo apt-get install screen
1. Change user to the username you want to allow screen access
2. To start up screen:
screen -S sessionname
3. Now instruct the second/remote user to SSH connect to your host/IP and to attach to the screen
screen -x sessionname
Both will be able to interact in the same session.
[REFERENCES]
http://www.gnu.org/software/screen
Thursday, February 7, 2013
root with X access
Using Debian Squeeze and others older versions, the root cannot execute X programs from a x-console (like kde-konsole or gnome-terminal).
To allow this just edit your root's .baschrc and add this line
export XAUTHORITY=/home/$SOME_USER/.Xauthority
where SOME_USER is replaced by a user with X access.
To allow this just edit your root's .baschrc and add this line
export XAUTHORITY=/home/$SOME_USER/.Xauthority
where SOME_USER is replaced by a user with X access.
Subscribe to:
Posts (Atom)
