Notices


Reply
Thread Tools
Posts: 155 | Thanked: 61 times | Joined on Nov 2009
#11
Originally Posted by rantom View Post
Thanks for this info. However, I'm just wondering, that would there be a way to support even OS X? As far as I can tell, the CUPS is not available on it and thus I can't really use URPO. I'd rather not install Linux, since it seems to be quite unnecessary to me, I don't need printing from my phone that much.

EDIT: *Cough*

Anyways, I'm having some trouble in here now. I can't send the damned RSA via SSH, haven't tried though Bluetooth yet. I do manage to make the connection but every time I do it, the X-Term only prints
Code:
/Users/NICK/.ssh/authorized_keys/: Is a directory
and I fail to receive the file.
MaxOSXs printing system is CUPS. Apple bought the company that created CUPS....
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#12
Originally Posted by helihyv View Post
I don't have an OS X at hand, so I'll have to guess... If your authorized_keys really is a directory my guess is you should place the file inside it.

Like this:
cat ~/.ssh/id_urpo | ssh user@computer 'cat >> ~./ssh/authorized_keys/id_urpo'
Yeah, I tried that earlier on and that resulted to the error "...is a directory".

Originally Posted by phedders View Post
MaxOSXs printing system is CUPS. Apple bought the company that created CUPS....
Yes, I noticed that too. If you would've read the post in it's entirety you'd noticed, that I already edited it in there.

Post #9

EDIT: *Cough*
CUPS is the standards-based, open source printing system developed by Apple Inc. for Mac OS® X and other UNIX®-like operating systems.

Last edited by rantom; 2010-08-11 at 17:48. Reason: Posting old quote.
 
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#13
Originally Posted by rantom View Post
Yeah, I tried that earlier on and that resulted to the error "...is a directory".
What I wrote was a bit different than the command given in the help of URPO, but since I made a mistake, it would not have worked anyway. So it's good you didn't try . Anyway, if you just copy a file (instead of adding stuff to an existing one like the command in URPO help does), its easier to use the scp command.

Is your ~/.ssh/authorized_keys really a directory instead of a file?






 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#14
Originally Posted by helihyv View Post
What I wrote was a bit different than the command given in the help of URPO, but since I made a mistake, it would not have worked anyway. So it's good you didn't try . Anyway, if you just copy a file (instead of adding stuff to an existing one like the command in URPO help does), its easier to use the scp command.Is your ~/.ssh/authorized_keys really a directory instead of a file?


link
Huh. Don't know what happened but now the command
Code:
cat ~/.ssh/id_urpo | ssh user@computer 'cat >> ~./ssh/authorized_keys/id_urpo'
worked just fine. I guess I misspelled it. I have the id_urpo now on my MacBook Pro, now what? If I try to browse from the N900 to find the original id_urpo, I can't find it, thanks to the fact that I can't browse to the /root.

Last edited by rantom; 2013-04-30 at 14:16.
 
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#15
Originally Posted by rantom View Post
Huh. Don't know what happened but now the command
Code:
cat ~/.ssh/id_urpo | ssh user@computer 'cat >> ~./ssh/authorized_keys/id_urpo'
worked just fine. I guess I misspelled it. I have the id_urpo now on my MacBook Pro, now what?
Just to make thinks clearer:
Do you now have a directory authorized_keys with the file id_urpo in it or a file authorized_keys containing the contents of the original id_urpo ? The latter is what Linux wants, I do not know about OS X.

Originally Posted by rantom View Post
If I try to browse from the N900 to find the original id_urpo, I can't find it, thanks to the fact that I can't browse to the /root.
The browse dialog is limited to "N900" ( which is its default behavior), which obviously is a bug. I'll file a bug report on that so it's not forgotten about.
You can still write the filename directly. You should use /home/user/.ssh/id_urpo instead of ~/.ssh/id_urpo
 
Posts: 4 | Thanked: 5 times | Joined on Jul 2010
#16
Sadly, there seems not be any simple way to authenticate using password. Technically, OpenSSH doesn't accept password through QProcess standart input channel. That is because of security policies of openssh. Using external tools (empty etc) will add dependencies (and only MAY work...).

Summary: URPO works with ssh keys. For very temporary use, it is possible to run URPO from terminal and switch to terminal and write password (four times per one printing job).

Urpo is only a small utility with simple procedure (ask printers with lpstat; copy file with scp; print with lp; run commands through ssh). Hopefully the system itself will support printing in some day...

Arto
 

The Following User Says Thank You to artohyv For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#17
Originally Posted by helihyv View Post
Just to make thinks clearer:
Do you now have a directory authorized_keys with the file id_urpo in it or a file authorized_keys containing the contents of the original id_urpo ? The latter is what Linux wants, I do not know about OS X.



The browse dialog is limited to "N900" ( which is its default behavior), which obviously is a bug. I'll file a bug report on that so it's not forgotten about.
You can still write the filename directly. You should use /home/user/.ssh/id_urpo instead of ~/.ssh/id_urpo
Nope, doesn't seem to work. I have everything setup correctly and still fail to make a connection between URPO and my MacBook Pro. I just get connection failure. I've checked the file, it's chmodded to 600, as it should be, and the computer has it on it's system.

Kind of running out of options in here.
 
Posts: 38 | Thanked: 18 times | Joined on Apr 2010
#18
Originally Posted by artohyv View Post

Summary: URPO works with ssh keys. For very temporary use, it is possible to run URPO from terminal and switch to terminal and write password (four times per one printing job).


Arto
This way it works perfectly for my needs. Not very "user-friendly", but who cares? The app does the job on *nix + cups system, and that's great, thanks!
 

The Following User Says Thank You to deed For This Useful Post:
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#19
Originally Posted by rantom View Post
Nope, doesn't seem to work. I have everything setup correctly and still fail to make a connection between URPO and my MacBook Pro. I just get connection failure. I've checked the file, it's chmodded to 600, as it should be, and the computer has it on it's system.

Kind of running out of options in here.
What does the debug window of URPO tell you after you have tried to connect?
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#20
Originally Posted by helihyv View Post
What does the debug window of URPO tell you after you have tried to connect?
Code:
[Running command ssh -i /home/user/.ssh/id_urpo rantom@10.0.0.4 env LANG=en lpstat -p ]
Prosessi päättyi paluuarvolla 255
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Host key verification failed.

Yhdistämisessä virhe
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:05.