who configures environment variable "REMOTEHOST"? the handling of variable needs some fix, since it will truncate things after first colon, and therefore will chop IPv6 address off. (happens when you remote-login over IPv6) itojun