Support multi ssh keys

why did you move it to `restapi` function?