2059 Views 3 Replies Latest reply: Mar 22, 2010 2:36 PM by bethomas
Is there any way that I can enable clipboard access from a remote SSH session on 10.5.8? By default, this fails (As a test, try pbcopy/pbpaste - they give an error return code). Given that a remote SSH session has access to the display, I don't see why this would be disabled as a security issue.
Why is it a given that an ssh session has access to the display on the remote system? You don't even need to have a display head, and can still use ssh.
Reading earlier posts, it sounds like this was working in 10.4.
Any thoughts as to how I might get this working?
Does osascript work? Can you send a message to "System Events" and ask it do do the copy/paste operations? That is to say can you do this all via Applescript?
And if Applescript is the solution, then the Mac OS X Technologies -> Applescript forum would be a good place to ask for assistance
Of course if someone else has a clue, chime in, but I don't see how the ssh daemon (sshd) on the remote system would have all the necessary access established to the display and the window manager. And I would hope it does not have access if it is not the current user logged in or it is root.
Unfortunately the problem is more generic than just needing to R/W from the clipboard. I need to be able to launch an application with clipboard access, so writing a script isn't an option.
Also, to clarify what I was saying about the display - If I ssh as the same user which is currently logged into the windowing session then I am able to launch a process from the remote machine that uses the display.
I got a tip on a different forum that this is a 10.5 bug fixed in 10.6. I'm going to upgrade and test this out again. Will post with the result...