prototype for ssh