If you are handling a server migration and would like to have a scripted way to copy the crontab from one machine to the other then you might like this little snippet. PLAIN TEXT CODE: ssh -p2020 root@123.123.123.123 'crontab -l' | crontab - This will get the contents of the root crontab from one server [...]
Archive: ssh
Posts Tagged ‘ssh’
So there is often a requirement for sharing files but what happens if those files are files that absolutely must be secure, like private ssh keys? Well Dropbox whilst a good product is third-party and not encrypted so if there's an exploit, the contents of the files could well be exposed to people you don't [...]
If you manage a few servers, you might often find yourself with a few terminal windows open and it can get tricky to remember which terminal window is which. To make this a lot easier you can create a custom terminal launcher for your panel and make it use a custom terminal colour scheme and [...]
If you are finding it takes ages for a password prompt to come up when trying to connect to a CentOS server (and possibly others) this is a solution. The cause is that your IP address does not have the correct reverse DNS etc settings. You can of course try to fix all that but [...]
If you are frustrated with Samba and would like something a bit more solid and speedier whilst being very easy to set up, check out SSHFS. To install it you simply need to do PLAIN TEXT CODE: sudo apt-get install sshfs Once that's done you can mount a remote filesystem in a very similar way [...]
Heres a nice easy one, installing the latest phpMyAdmin directly using SSH PLAIN TEXT CODE: wget "http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.8/phpMyAdmin-3.3.8-all-languages.tar.gz?r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Fdownloads.php&ts=1289829566&use_mirror=heanet" tar -xvf phpMyAdmin-3.3.8-all-languages.tar.gz More Reading:Yii Setting up Authorisation – the Missing ManualMySQL Performance TuningVery High Speed Batch Update Multiple Rows of a Table in Single QueryUsing PHP to Stream SQL results dynamically as CSV, even to IEEmergency [...]
If you ever want to have a quick look at a html file from the command line (eg when SSHing into a server) then you will love this little app. Called w3m, its a basic text based browser that will render your html into readable formatted text right on the command line. This is great [...]
Just discovered this site - some handy little command line snippets there http://www.commandlinefu.com/commands/browse/sort-by-votes for example some SCP goodness. Definitely one I will be using again More Reading:Writing Robust Bash Shell ScriptsPath Tools Netbeans Open File in external program plus guake codeForce a Bash Script to run in ScreenServer Migration – Synch Cron Tab via SSHSecure [...]
Just thought I would drop a quick blog and link to this nice succinct guide for setting up SSH to be able to log in via public key. SSH public key tutorial Using public keys offers you a more secure way of logging into an SSH server and also opens up the possiblity of being [...]