Updating Packages Using Apt On Old Debian Installs

When attempting to install a new package or update an existing package if you are presented with the error


1
E: Release file expired, ignoring http://archive.debian.org/debian-archive/debian/dists/squeeze-lts/Release (invalid since 189d 0h 42min 32s)

You will need to execute the following command as root:


1
$ echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/90ignore-release-date

And then perform…


1
$ apt update

or if you are using aptitude…


1
$ aptitude update

You may need to execute the above command twice to make sure everything is up to date.

OpenSSH Public Key Authentication

Key Generation

ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
Enter passphrase (empty for no passphrase): …
Enter same passphrase again: …

Key Distribution

# first, upload public key from client to server

scp ~/.ssh/id_rsa.pub user@server.example.org:

# next, setup the public key on server

cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
rm ~/id_rsa.pub