Just a short list of "sample" ssh, scp, rsync (later), and cvs commands, to help me keep the syntax straight.
Sources:
Add more on cvs from abiword.
export CVS_RSH=ssh
export CVSROOT=loginname@cvs.yourproject.sourceforge.net:/cvsroot/yourproject
(rsync is the most confusing, with the number of colons being significant.)
rsync <later>
ssh -l loginname yourproject.sourceforge.net
(Note, that's an "ell" standing for login name.)
scp localfile loginname@yourproject.sourceforge.net:/home/groups/y/yo/yourproject/htdocs/
(Remember that the command is bidirectional, scp <sourcefile> <destinationfile>)
--
RandyKramer - 20 Jul 2001
A good intro to SSH at
SourceForge is
available here
.
If you get tired of typing in your SSH password the whole time, here's a secure way of avoiding this - see
this article
for how to use
ssh-agent and
ssh-add. This will require you to set up a DSA or RSA key on
SourceForge - see their SSH docs for details, in particular
this document on generating and uploading keys
. You can upload your public keys using your personal page at
SourceForge,
https://sourceforge.net/my/
- takes up to 6 hours for the keys to propagate to the various CVS/shell servers.
The result is that you can type the pass phrase protecting your private key once, and then not type it again for every CVS operation. Just tested this with
CygWin's
OpenSSH and a local SSH server, and it works very nicely!
--
RichardDonkin - 25 Mar 2002