ssh keepalive and vi improvements