added docstring for ssh func