User login

documentation

Managing an SVN Repository

Although there is a SVN guide online, it'll probably be just easier to bring forward our more commonly infrequently used processes (and subsequently, easily forgotten). And while we're at it, discuss our conventions.

Tagging and Branching

Tags are not modified while branches can be modified as a working copy. The purpose of tags is to record a static snapshot of a point of code.

Release Procedure

Copy a database [file] from another server

On the original server, first backup it's database as described above. [server] is the domain name or IP address of the server you wish to copy from. [username] is the username to access the remote server.

While on the server you wish to copy to, and in the directory you want the file to reside:

$ scp [username]@[server]:/path/to/file/to/copy/[filename] ./[filename]

When prompted for a password, enter the root password for the original server

To reverse it, effectively pushing a file to a remote server you would reverse the above command:

Passwordless SSH (using Public Keys and Agent Forwarding)

Part I: Private and Public Keys

SSH public key authentication requires the user to create a public/private key pair on her machine. It's easy:

ssh-keygen

A key pair will be generated (it is ok to hit enter every time you are prompted by the key generator) and stored in ~/.ssh. The default names are id_rsa/id_rsa.pub and id_dsa/id_dsa.pub depending on the encryption algorithm. For each device used to connect to remote machines via ssh this must be repeated. It's not a good idea to spread the private key.

Syndicate content