Showing the actual code you used is more likely to get you helpful answers.
Can I suggest you check out How do I post a question effectively? It really will help, for instance, if you update your question with more information than you've given us so far and include code.
I haven't worked with Net::SSH myself, but I'm sure plenty of folks have who can help if they get enough information to help.