User login

server administration

Using nmap

If not installed yet:
sudo apt-get install nmap

$ nmap sojourner.mayfirst.org

Installing Drush

We are fTollowing our Debian-inspired sysadmin, Stefan Freudenberg, in the locations of this extra-Drupal project, but you can put it anywhere.

Remember to check the Drush project page for the latest version to wget, and replace the CURRENT-VERSION tarball link with that. This will be the last module you ever have to do that for.

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