The Archives

  • 17.Oct.08
    DHCP, inverted commas and ssh with RSA automated, security | pfortuny | (1)
    There is a server I manage (called alex) which has not a fixed IP. As you know, I have a shell at the best Unix server out there (by the way, it is almost free. The problem is to keep an up-to-date record of the first server's IP address. I do it as follows (and yes, I know timtowtdi). What I did was: Create an RSA public/private key pair at alex: alex $ ssh-keygen -N'' -f 'id_alex' -t rsa which creates the files id_alex and id_alex.pub. Create a cron job for my account at alex which looks like 5,10,15,20,25,30,35,40,45,50,55,0 * * * * /usr/bin/ssh -i ...
  • 05.Jun.08
    Globbing with scp cmd | pfortuny | (0)
    Sometimes you need to use globbing 'at the far end' of an scp command. The simple $ scp me@there.com:* . does not work (obviously), you need some double quotation marks: $ scp me@remote.com:"INBOX.*" . me@remote.com's password: INBOX.Drafts 100% 504 0.5KB/s 00:01 INBOX.Sent 100% 5082 5.0KB/s 00:00 INBOX.Trash 100% 20KB 19.6KB/s 00:00