I have been having problems with using scp in the Net::SSH2 module. I can get sftp to work, but would really like to use ssh2->scp_??? to work.
When I executed a small program, I get:
-22LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED
I also tried using WinSCP to see if it was something on my end. I can connect with SFTP, but when I try using SCP, I get:
Connection has been unexpectedly closed. Server sent command exit status 0
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
I also tried using a different server and got the following error for scp using WinSCP:
Server refused to start a shell/command.
Authentication log (see session log for details):
Using username "myUserName".
Authentication failed.
Can anyone help? Do I need to have the people at the server end configure SCP properly?? Is it something on my end?? Can I specify what type of shell to use???
Thanks for the help (if any)!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.