Make ssh properly work as RPC