Avoiding input problems with ssh