Skip to content

Tag Archives: openssh

CVSROOT Environment Variable for CVS-over-SSH

15-Jan-09

When using CVS-over-SSH, set the CVSROOT environment variable as follows:
:ext:username@remotemachine:/full/path/to/cvsroot

You may wish to use SSH public key authentication and ssh-agent to avoid having to enter your password on the remote machine repeatedly.

Running Tar over SSH

15-Jan-09

Running tar over ssh is straightforward:
% tar czvf – /home/anl | ssh desthost “cat > home.tar.gz”
Other ideas:
% tar -cf – /u01 | ssh otherhost “bzip2 -c > /u1/u01-backup.tbz”
% tar -cf – /dir | ssh otherhost “cd /newbasedir ; tar -xpf -”