Skip to main content

Posts

Showing posts from June, 2005

SSH using PK...

OK, tonight I want to do this - passwordless access to my Linux box from Windows over SSH. This site looks like what I need - and of course because I'm coming in from a Windows box I'll be using Putty - and this is the story for that part of the equation. So, At the PC, run 'puttygen' (taking all defaults - RSA, SSH-2, 1024 - but no passphrase) and save the resulting private key - in my case to priv-key.pps - and copy the txt at the top of the Puttygen screen labelled "Public Key for pasting into OpenSSH authorized_keys file" Now ssh to the Linux box, type ssh -V to check that we're using OpenSSH, then (assuming we want to login as root): mkdir /root/.ssh cd /root/.ssh vi authorized_keys "Public Key for pasting into OpenSSH..." text we got from Puttygen > chmod 700 .ssh chmod 600 .ssh/authorized_keys Right, now start Putty and create a config - but in the Connection,Data, AutoLoginName enter root , and in Connection,S...

Tunneling X over ssh!

Cool fun! Something I've been meaning to do for a while. Steps were: - futz with sshd.conf (very easy) on remote Debian box to enable X forwarding - install and run Cygwin/X on the home machine - type startx at the Cygwin bash prompt - tick X forwarding in 'putty' on the Windows box at home - Putty in to the Linux box, "init 5" (normally runs in text-mode runlevel 2) and type "xclock" - It Just Works! - init back to 2 on the remote Linux box Windows firewall needed to be told that this was all Ok, but all worked fine - and was not in as "Administartor" on Windows - although of course had to RunAs the Cygwin setup as Admin... Cool.... PS: Spent *ages* trying to find info on xsabre or even a screenshot- mabe I just have to apt-get it and try it over this funky new system!

Debian 'sarge', RSS etc

Looks like RSS is going mainstream too, with IE7 going to support it - big announcement at Gnomedex last week. Bunged the newly stable 'sarge' Debian on a box a week or two ago and roughly setup MySQL, Apache2, PHP and Wordpress. A bit of a mission, and needs some tidying up. Used Bastille to lock the box down - very nice. Also installed 'psad' which is generating some interesting info - looks like the Phillipines is the latest hotbed of crackers and/or bots! Filezilla does a wonderfull job of scp'ing files across however (removing the need for FTP), but it's obviously expecting at least a 1024 wide screen by the way it lays out its screen. OK on my work machine, but a pain at home.