Stef, Again. Thank you, but you are missing the point. This is a libssh mailing list. I know that you are an experienced developer that can write your own ssh library, but that is not relevant to this discussion. I am trying to use libssh to do this and you are taking the discussion off topic and not really answering the questions I am asking.
I really do appreciate your helpful attitude, but please try to stay on topic. This is a libssh discussion board. I do not need information on how to configure openssh or other ways to structure my code. I am trying to learn to use libssh to do this. Thanks again! I fear that this thread has already diverged from its original intention. Really it would be nice to have a small example similar to ( http://api.libssh.org/master/libssh_tutor_sftp.html) for the server side. That was what I was hoping this thread would become. Perhaps it still can get back on topic.
