Archive | February, 2007

SSH works, SCP doesn’t

15 Feb

I could ssh to a freebsd box but couldn’t scp to it.

When i cleared out .cshrc it started working again.

Oh this was cos my .cshrc had ‘bash’ in it cos i prefer bash but have no root


DTrace – monitor a file

12 Feb

To monitor who is opening a file on a Solaris box, try opensnoop –

awk – previous line

6 Feb

mailq | awk ‘/temporary failure/{print pNR, p0}{pNR=NR;p0=$0}’ | awk ‘{print $2}’ | awk ‘{sub(/*/,””);print $1}’ | /usr/sbin/postsuper -d –

JSchException – invalid privatekey – ant – scp

2 Feb

Trying to use scp target in ant with a ‘keyfile’, i had previously used puttygen to make myself a key (and it worked fine through putty).

With Ant i was getting:

$> build.xml:21: com.jcraft.jsch.JSchException: invalid privatekey: C:\id_rsa.ppk

Load up puttygen and “Export” the key in ‘openssh’ format. Try using this key instead.