huangwason
Programmer
Hi I want to save a remote screenshot from my local PC. For example, I have a target with IP 10.0.100.1, if I login in via ssh to this target, I could save the screenshot by command
DISPLAY=":0.0" import -window root screenshot.png
or
xwd -out -root -display :0.0 screenshot.xwd
Now I do not login via ssh, I want to save the remote screenshot in my local PC. I have tried command
ssh root@10.0.100.1 'DISPLAY=":0.0" import -window root screenshot.png'
or
ssh root@10.0.100.1 'xwd -out -root -display :0.0 screenshot.xwd'
neither can save the screenshot, do someone any suggestion? Thanks in advance.
DISPLAY=":0.0" import -window root screenshot.png
or
xwd -out -root -display :0.0 screenshot.xwd
Now I do not login via ssh, I want to save the remote screenshot in my local PC. I have tried command
ssh root@10.0.100.1 'DISPLAY=":0.0" import -window root screenshot.png'
or
ssh root@10.0.100.1 'xwd -out -root -display :0.0 screenshot.xwd'
neither can save the screenshot, do someone any suggestion? Thanks in advance.