Remote SSH example needed

I have a need to provide a simple interface whereby a user would supply login/password for a remote ssh command like performing a scp of a file from the remote server to their local workstation. I’m trying to follow the API example from but having a bit of a problem getting the timer info in the proper context. Could use a few pointers and especially examples. Thanks.