emulate rsh client behavior using ssh