Disclaimer

This information HAS errors and is made available WITHOUT ANY WARRANTY OF ANY KIND and without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It is not permissible to be read by anyone who has ever met a lawyer or attorney. Use is confined to Engineers with more than 370 course hours of engineering.
If you see an error contact:
+1(785) 841 3089
inform@xtronics.com

Server Checklist

Moving server to new Box (real / virtual) Checklist

Also useful for upgrade to a fresh system volume

Pre machine move

newserver.domain.com
and a listing for the old server:
oldserver.domain.com
or something shorter

Set up Box

grep old etc for current IP(s) to generate a list of files that need updating with the new IP(s)

Post move

Distribution Upgrade

Cleaning Configs

With a new version - it is probably best to do a fresh install. Then using
$ sshfs remotemachine:/etc /mountpoint
Run meld and do a directory compare of the old etc -- fast way to clean the configs.

Cleaning package cruft

$ wajig listorphans ; find them
$ wajig purgeorphans ; delete them - run both command multiple times
Via autoremove
$ wajig autoremove
Remove bits from old distributions
$ aptitude search ~o ; short for aptitude search ?obsolete - list first sanity check
$ aptitude purge ~o ;

ssh

# Recreate host keys
sudo rm /etc/ssh/ssh_host_*
sudo ssh-keygen -A

# Re-install SSh
sudo apt-get --reinstall install openssh-server openssh-client

Check sshd_config

# helps fail2ban
MaxAuthTries 3

Ciphers line


Top Page wiki Index

Email

(C) Copyright 1994-2019
All trademarks are the property of their respective owners.