Hosting: Backing up your MediaTemple using rsync and a linux box

Follow these steps to setup a decent backup solution for your MT hosting (you can adapt this to any other hosting that offers SSH and RSYNC access). First you'll want your linux box to be able to SSH into your hosting without a password using a SSH key instead. Then,… Continue reading

Linux:: SSH configuration file

To save some typing you can create aliases to the servers you frequently access via ssh. This can be accomplished by either editing the global file ( /etc/ssh/ssh_config ), if you’re root and and to make changes for all the users, or your own config file ( $HOME/.ssh/config ). Follow… Continue reading

Linux:: settings shortcuts for your ssh connections to hosts

If you wish you could use friendly names to access your servers, here’s how to do it: Edit your ~/.ssh/config and add the following: Host myserver HostName Port 12345 User bob Host other_server HostName User alice CheckHostIP no Cipher blowfish Please, remember to customize “HostName” and “User” values… Continue reading

Use an alias to SSH to a server

Create a file ~/.ssh/config and insert the following: mauricio@rynex:~$ cat .ssh/config Host SERVER_ALIAS Port PORT HostName SERVER_NAME User USERNAME Compression yes TCPKeepAlive yes Change according to your servername, username and port, of course. Then you can simply use: ssh SERVER_ALIAS to connect to the server instead of using: ssh username@hostname

Setting up Slackware 13 (64-bit) (part 3)

Make your server trust your laptop+user: #su – “your username here” $ssh-keygen -t rsa $scp ~/.ssh/ “remote_username”@”host_name”:”target_filepath_for_key_on_the_server” Now ssh into your server: $ssh “remote_user”@”host_name” $cd ~/.ssh Insert your laptop’s public key in the authorized keys list: $cat “target_filepath_for_key_on_the_server” >> authorized_keys Try ssh-ing your server again (this time you should not… Continue reading

Making your server trust your laptop

How to use private/public keys to have your server trust your laptop, so you don’t need to type your password over the wire Continue reading