Forum

Author Topic: Unable to run photoscan through ssh to other machine  (Read 2250 times)

ankit.chaurasia

  • Newbie
  • *
  • Posts: 8
    • View Profile
Unable to run photoscan through ssh to other machine
« on: July 26, 2017, 03:31:36 PM »
I was trying to run Photoscan headless. I want to run that photoscan in other machine through ssh using:
Code: [Select]
ssh {host-ip address}
When I just use ssh login and try to run my script using:
Code: [Select]
photoscan -r {script-name}
I get this error:
QXcbConnection: Could not connect to display
Aborted (core dumped)



But when I run ssh -X to login,
Code: [Select]
ssh -X {host-ip address}
And if I run the photoscan script now
Code: [Select]
photoscan -r {script-name}, it runs completely fine.
But, wanted to run photoscan in ssh login only as most of the Virtual machines don't allow ssh -X
Please do help me out with this.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Unable to run photoscan through ssh to other machine
« Reply #1 on: July 26, 2017, 04:00:10 PM »
Hello ankit.chaurasia,

Please try using the following argument when running the script from the command line:
Code: [Select]
-platform offscreen
Best regards,
Alexey Pasumansky,
Agisoft LLC

ankit.chaurasia

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Unable to run photoscan through ssh to other machine
« Reply #2 on: July 26, 2017, 04:31:57 PM »
Thank you. It works!