"Test SCP server connection" fails with error message "shell request failed on channel 0"

"Test SCP server connection" fails with error message "shell request failed on channel 0"

4415
Created On 02/15/24 18:03 PM - Last Modified 08/30/24 21:25 PM


Symptom




Environment



 


Cause


The SCP Server does not support the Shell connection requested by client (Panorama).

Resolution


  1. Use the server that supports the shell requests. One example is OpenSSH.
  2. The error "shell request failed on channel 0" indicates that there's no shell or remote command access available on the server.
  3. When the server  doesn't implement/support shell requests, the request fails and error message is displayed.


Additional Information


  • There's a difference between the scheduled config export execution and the "Test scp server connection".
  • The "test scp server connection" tries to access the shell and execute commands to create a new file.
debug1: Executing command: "c:\\windows\\system32\\cmd.exe" /c "echo paloaltonetworks > \\/Conf\\/ssh\\-export\\-test\\.txt" with no pty
  • The scheduled config export uploads a tgz file.
debug1: Executing command: "c:\\windows\\system32\\cmd.exe" /c ""C:\\Windows\\System32\\OpenSSH\\scp.exe" -t /Conf/PAN-01_20240206.tgz" with no pty

 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000XhmlCAC&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language