Changes to allow proxying an rlogin connection