Archive for the tag 'SSH'

 

 

Dec 21 2008

Synchronize Directories with Rsync and SSH

Published by dave under SSH

To copy or synchronize data across servers with SSH encryption benefits, run on the target:
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /local/dir/

No responses yet

Nov 20 2008

Environment Variables and SSH

Published by dave under SSH

Very few environment variables are defined when connecting to a remote host with an SSH authorized key.
 

# ssh localhost env
SHELL=/bin/bash
SSH_CLIENT=127.0.0.1 53816 22
USER=dave
MAIL=/var/mail/dave
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/home/dave
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/dave
LOGNAME=dave
SSH_CONNECTION=127.0.0.1 53816 127.0.0.1 22
_=/usr/bin/env

 
To run a program calling libs from an unusual location, we’d need to redefine the LD_LIBRARY_PATH variable for instance.
This can be achieved in 2 steps:
- Add ‘PermitUserEnvironment yes’ to your sshd_config [...]

One response so far

Sep 04 2008

Access X11 Applications via SSH and Putty

Published by dave under linux

You would like to access X11 applications on your server, but it is only reachable with SSH? Nevermind with Putty! Putty allows you to create an SSH tunnel in which the X11 flow is encapsulated: X11 forwarding.
 
xorg-x11-xauth has to be installed on the server side to be authenticated on X.
Launch a graphical manager on your [...]

One response so far